Function at 0x4a2e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x384
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3a8]
push edi
mov edi, dword [esp + 0x3a8]
lea eax, [esp + 0x60]
push esi
push eax
mov ebx, ecx
push 4
call edi
lea ecx, [esp + 0x6c]
push ecx
call fcn.00454550
lea edx, [esp + 0x60]
push esi
push edx
push 4
mov word [esp + 0x230], 0x80
call edi
mov esi, eax
add esp, 0x1c
test si, si
jne 0x4a3ec9
lea eax, [esp + 0x60]
push eax
call fcn.00454550
mov edx, dword [esp + 0x54]
add esp, 4
xor ecx, ecx
test edx, edx
sete cl
xor eax, eax
or edx, 0xffffffff
cmp word [ebx + 0x3de], ax
mov dword [esp + 0x50], ecx
jbe 0x4a2f17
xor ecx, ecx
mov edi, dword [ebx + 0x3e4]
inc eax
mov dword [edi + ecx + 0x28], edx
xor edi, edi
mov di, word [ebx + 0x3de]
add ecx, 0x2c
cmp eax, edi
jl 0x4a2efc
mov edi, dword [esp + 0x39c]
push 0
push edi
push edi
mov ecx, ebx
call fcn.0049e6d0
mov eax, dword [ebx + 0x394]
mov ebp, dword [esp + 0x398]
test eax, eax
je 0x4a2f4b
mov ecx, ebx
mov dword [esp + 0x4c], 1
call fcn.0049eb50
jmp 0x4a2fc6
mov eax, dword [esp + 0x60]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x4a2fc6
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4a2fc6
push edi
mov ecx, ebx
call fcn.004898d0
push eax
call fcn.004952e0
add esp, 4
cmp eax, edi
je 0x4a2fc6
push 0
lea edx, [esp + 0x3b]
push 1
push edx
push edi
mov ecx, ebx
mov byte [esp + 0x47], 0xd
call fcn.0049ec90
push edi
mov ecx, ebx
call fcn.004af580
mov eax, dword [ebx + 0x418]
push 1
push eax
call fcn.00489850
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push ebp
call dword [edx + 0x64]
mov eax, dword [esp + 0x3a0]
inc edi
inc eax
mov dword [esp + 0x39c], edi
mov dword [esp + 0x3a0], eax
mov eax, dword [esp + 0x3b8]
test eax, eax
je 0x4a2fdc
mov eax, 0x18
mov dword [esp + 0x24], eax
jmp 0x4a3004
mov eax, dword [esp + 0x3ac]
lea ecx, [esp + 0x24]
push eax
push ecx
push 4
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a3ec9
mov eax, dword [esp + 0x24]
lea edx, [eax + eax*2]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
shl edx, 3
sub edx, eax
shl edx, 1
push edx
push 2
call edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
push 2
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], eax
lea eax, [edx*4]
push eax
push 2
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x7c], eax
call edi
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
push ecx
call edi
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18], eax
push edx
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3b8]
test eax, eax
je 0x4a30f8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], 0
test eax, eax
jle 0x4a3120
mov eax, dword [esp + 0x18]
add eax, 0x26
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x3ac]
lea edx, [esp + 0xd0]
push ecx
push edx
push 0x24
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
mov eax, dword [esp + 0x28]
mov ecx, 8
lea esi, [esp + 0xd0]
lea edi, [eax - 0x20]
add eax, 0x2e
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x28], eax
mov dword [eax - 0x2e], ecx
mov ecx, dword [esp + 0x44]
mov word [eax - 0x54], 0
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
mov dword [esp + 0x44], ecx
jl 0x4a3092
jmp 0x4a3129
mov edx, dword [esp + 0x3ac]
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
shl ecx, 1
push ecx
call dword [esp + 0x3b4]
add esp, 0xc
mov esi, eax
test si, si
jne 0x4a31dc
mov eax, dword [esp + 0x24]
xor edi, edi
test eax, eax
jle 0x4a316a
mov edx, dword [esp + 0x18]
lea esi, [edx + 0x2a]
lea eax, [esi - 4]
push eax
call fcn.00454550
push esi
call fcn.00454550
lea ecx, [esi - 0x2a]
push ecx
call fcn.00454520
lea edx, [esi - 0x28]
push edx
call fcn.00454550
mov eax, dword [esp + 0x34]
add esp, 0x10
inc edi
add esi, 0x2e
cmp edi, eax
jl 0x4a313a
mov edi, dword [esp + 0x3ac]
lea eax, [esp + 0x1c]
push edi
push eax
push 4
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
lea ecx, [esp + 0x1c]
push ecx
call fcn.00454550
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, 0x651a58
push edx
call fcn.0041a700
push edi
push eax
mov ecx, 0x651a58
mov dword [esp + 0x44], eax
call fcn.0041a8b0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
je 0x4a3216
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, 0x651a58
call fcn.0041a860
mov edi, dword [esp + 0x6c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebx
mov ebp, dword [esp + 0x70]
push ebp
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
push ebp
call edi
mov ebp, dword [esp + 0x78]
push ebp
call ebx
push ebp
call edi
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x24
mov edx, dword [esp + 0x39c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], edx
push edi
lea edx, [ecx + ecx]
push eax
push edx
mov dword [esp + 0x34], 0
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
je 0x4a3267
mov eax, dword [esp + 0x3c]
mov ecx, 0x651a58
push eax
call fcn.0041a860
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x24
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x4a328a
mov edi, dword [esp + 0x10]
push edi
call fcn.00454520
mov eax, dword [esp + 0x28]
add esp, 4
inc esi
add edi, 2
cmp esi, eax
jl 0x4a3275
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4a33c8
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0
je 0x4a3392
mov eax, dword [ebp + 0x322]
xor edi, edi
test eax, eax
jle 0x4a3301
xor esi, esi
mov edx, dword [ebp + 0x32a]
mov ecx, dword [esp + 0x18]
lea eax, [edx + esi + 6]
push eax
lea eax, [ecx + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a32fb
mov eax, dword [ebp + 0x322]
inc edi
add esi, 0x2e
cmp edi, eax
jl 0x4a32ce
jmp 0x4a3301
mov edx, dword [esp + 0x20]
mov dword [edx], edi
cmp edi, dword [ebp + 0x322]
jne 0x4a3392
mov eax, dword [ebp + 0x326]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x322]
mov edx, dword [ebp + 0x326]
inc eax
push 2
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
shl ecx, 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [ebp + 0x326], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0x322]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x32a], eax
lea edx, [ecx + ecx*2]
shl edx, 3
sub edx, ecx
mov ecx, 0xb
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x3b4]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x20]
movsw word es:[edi], word [esi]
mov dword [eax], 1
mov ecx, dword [ebp + 0x322]
mov dword [edx], ecx
mov eax, dword [ebp + 0x322]
inc eax
mov dword [ebp + 0x322], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
add edi, 2
add esi, 0x2e
add edx, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
jl 0x4a32b2
mov eax, dword [esp + 0x3ac]
lea ecx, [esp + 0x194]
push eax
push ecx
push 0x40
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
je 0x4a33f5
mov edx, dword [esp + 0x3c]
push edx
jmp 0x4a31d2
lea esi, [esp + 0x194]
mov edi, 0x20
push esi
call fcn.00454520
add esp, 4
add esi, 2
dec edi
jne 0x4a3401
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp word [esp + eax + 0x194], 0
mov word [esp + eax + 0x114], 0xffff
je 0x4a3639
mov esi, dword [esp + 0x3ac]
lea ecx, [esp + 0x1c]
push esi
push ecx
push 4
mov word [esp + eax + 0x1a0], 0
call dword [esp + 0x3b4]
lea edx, [esp + 0x28]
push edx
call fcn.00454550
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, 0x651a58
push eax
call fcn.0041a700
push eax
mov ecx, 0x651a58
mov dword [esp + 0x44], eax
call fcn.0041a8b0
mov ecx, dword [esp + 0x1c]
mov edi, eax
push esi
push edi
push ecx
mov dword [esp + 0x2c], edi
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
lea esi, [edi + 8]
push esi
call fcn.004545d0
push 0x7fe6
push esi
call fcn.004537b0
lea edx, [eax + edi + 0xe]
add esp, 0xc
mov dword [esp + 0x48], edx
mov edx, 0xffff
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
lea esi, [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4a3514
push 0x7fe6
push eax
call fcn.004537f0
add esp, 8
mov edi, eax
mov eax, dword [esi]
mov ecx, 0x651a58
push eax
call fcn.0041a8b0
mov edx, dword [esp + 0x48]
lea ecx, [eax + edi + 6]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4a3530
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4a3521
cmp dx, 0xffff
jne 0x4a3521
mov edx, ecx
mov dword [esp + 0x14], edx
inc ecx
add esi, 4
cmp ecx, 0x20
mov dword [esp + 0x18], ecx
jl 0x4a34d3
jmp 0x4a3545
mov ecx, dword [esp + 0x10]
mov ax, word [esp + 0x18]
mov edx, dword [esp + 0x14]
mov word [esp + ecx + 0x114], ax
mov eax, dword [esp + 0x10]
cmp word [esp + eax + 0x114], 0xffff
jne 0x4a362a
cmp dx, 0xffff
je 0x4a362a
mov ecx, dword [esp + 0x40]
xor esi, esi
and edx, 0xffff
push esi
push esi
push 0x3c
lea eax, [ebx + edx*4 + 0xc]
push 2
push ebp
mov dword [esp + 0x5c], eax
mov dword [eax], ecx
call fcn.0042f060
add esp, 0x14
test eax, eax
jle 0x4a3606
mov ecx, dword [esp + 0x48]
lea edx, [esi + 0x201]
mov word [esp + 0x1d4], dx
lea eax, [esp + 0x1d4]
mov edx, dword [ecx]
push eax
push edx
call fcn.00453820
mov edi, eax
add esp, 8
test edi, edi
je 0x4a35f0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [esp + 0x40]
mov dx, word [edi + ecx + 2]
push edx
push eax
call fcn.004a4cd0
add esp, 0xc
lea ecx, [esp + 0xf4]
push eax
push ecx
mov ecx, ebx
call fcn.004a4da0
mov edx, dword [esp + 0x20]
mov word [edi + edx + 2], ax
push 0
push 0
push 0x3c
push 2
push ebp
inc esi
call fcn.0042f060
add esp, 0x14
cmp esi, eax
jl 0x4a358d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov word [eax + 4], cx
mov eax, dword [esp + 0x10]
mov word [esp + eax + 0x114], cx
mov word [esp + eax + 0x194], 1
jmp 0x4a3639
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, 0x651a58
call fcn.0041a860
mov eax, dword [esp + 0x10]
add eax, 2
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x4a3418
xor eax, eax
mov word [esp + 0x114], ax
mov dword [esp + 0x14], eax
cmp word [esp + eax + 0x194], 0
je 0x4a36d4
mov eax, dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x214]
mov dword [esp + 0x28], 1
mov dx, word [esp + eax + 0x114]
push ecx
lea edi, [ebx + edx*4 + 0xc]
mov edx, dword [ebx + edx*4 + 0xc]
push edx
call fcn.00453820
mov esi, eax
add esp, 8
test esi, esi
je 0x4a36c1
mov eax, dword [edi]
mov ecx, 0x651a58
push eax
call fcn.0041a8b0
xor ecx, ecx
xor edx, edx
mov cx, word [eax + esi + 2]
mov dx, word [esp + ecx*2 + 0x114]
mov ecx, dword [ebx + edx*4 + 0xc]
mov dword [eax + esi + 2], ecx
mov edx, dword [esp + 0x5c]
mov eax, dword [edi]
push edx
push eax
mov ecx, ebx
call fcn.0049fbb0
mov eax, dword [esp + 0x14]
add eax, 2
cmp eax, 0x40
mov dword [esp + 0x14], eax
jl 0x4a365b
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x4a36f6
push esi
mov ecx, ebx
call fcn.004a1020
push 1
mov ecx, 0x651a58
mov dword [esp + 0x14], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041a700
push eax
mov ecx, 0x651a58
mov dword [esp + 0x44], eax
call fcn.0041a8b0
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x3ac]
mov edi, dword [esp + 0x64]
lea edx, [esp + 0x54]
push ecx
push edx
push 6
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
lea eax, [esp + 0x54]
push eax
call fcn.00454520
lea ecx, [esp + 0x5a]
push ecx
call fcn.00454550
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4a37fe
cmp dword [esp + 0x56], 0xffffffff
je 0x4a3786
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x92]
cmp edx, eax
je 0x4a37fe
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4a37f6
cmp dword [esp + 0x18], 0xffffffff
jne 0x4a37a0
mov eax, dword [esp + 0x39c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00484770
push eax
push edi
mov ecx, ebx
call fcn.00484750
push eax
mov ecx, ebx
call fcn.0048f560
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
push edx
push eax
push eax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov ecx, ebx
call fcn.004aa0d0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0048e760
mov ecx, dword [ebx + 0x3e4]
and eax, 0xffff
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
mov dword [ecx + eax*4 + 0x28], edi
mov dword [esp + 0x10], 0
cmp dword [esp + 0x56], 0xffffffff
je 0x4a3d7c
mov edx, dword [esp + 0x3ac]
lea eax, [esp + 0x1c]
push edx
push eax
push 4
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a3d7c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00454550
mov edx, dword [esp + 0x20]
add esp, 4
add edx, 6
mov ecx, 0x651a58
push edx
call fcn.0041a700
mov edi, eax
mov ecx, 0x651a58
push edi
mov dword [esp + 0x84], edi
call fcn.0041a8b0
mov ecx, dword [esp + 0x3ac]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add eax, 6
push ecx
push eax
push edx
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a3d71
mov eax, dword [esp + 0x2c]
lea esi, [eax + 8]
push esi
call fcn.004545d0
lea ecx, [esp + 0x218]
push ecx
push esi
call fcn.00453700
add esp, 0xc
test eax, eax
je 0x4a38c9
mov ecx, dword [esp + 0x2c]
xor edx, edx
xor esi, esi
mov dx, word [eax + ecx + 0xa]
mov si, word [esp + edx*2 + 0x114]
mov edx, dword [ebx + esi*4 + 0xc]
mov dword [eax + ecx + 0xa], edx
push edi
mov ecx, 0x651a58
mov word [esp + 0x1d8], 0x7f40
mov word [esp + 0x1da], 0x7f41
call fcn.0041a8c0
lea eax, [esp + 0x1d4]
push eax
push edi
call fcn.00453820
add esp, 8
test eax, eax
je 0x4a3957
lea ecx, [esp + 0x84]
push ecx
push 0x7f40
push edi
push ebp
mov ecx, ebx
call fcn.0048e440
mov edx, dword [esp + 0x3b4]
mov eax, dword [esp + 0x3ac]
mov ecx, dword [esp + 0x3a8]
push edx
mov edx, dword [0x6559e0]
push eax
push 0
push ecx
push edi
push ebp
call dword [edx + 0x510]
mov esi, eax
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.0048e570
add esp, 0x20
test si, si
jne 0x4a3d71
push edi
mov ecx, 0x651a58
call fcn.0041a8b0
mov edi, eax
lea ecx, [esp + 0x90]
add edi, 8
push ecx
push edi
mov dword [esp + 0x1c], edi
mov word [esp + 0x98], 0x7fe0
call fcn.00453700
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4a3b31
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4a3b20
mov ecx, dword [esp + 0x92]
mov edx, dword [esp + 0x10]
cmp edx, ecx
je 0x4a3ad6
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4a3a1a
test edx, edx
je 0x4a3a1a
mov edx, dword [esp + 0x39c]
mov ecx, ebx
push edx
call fcn.00484770
mov esi, dword [esp + 0x64]
push eax
push esi
mov ecx, ebx
call fcn.00484750
push eax
mov ecx, ebx
call fcn.0048f560
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x78]
push eax
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004aa0d0
mov edx, dword [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0048e760
and eax, 0xffff
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [ebx + 0x3e4]
mov dword [eax + edx*4 + 0x28], esi
mov ecx, dword [esp + 0x3ac]
lea edx, [esp + 0x1c]
push ecx
push edx
push 4
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
mov esi, dword [esp + 0x40]
mov ecx, 0x651a58
push esi
call fcn.0041a8c0
mov eax, dword [esp + 0x1c]
mov ecx, 0x651a58
push eax
push esi
call fcn.0041a830
push eax
mov ecx, 0x651a58
mov dword [esp + 0x44], eax
call fcn.0041a8b0
mov ecx, dword [esp + 0x3ac]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
mov dword [esp + 0x74], eax
call dword [esp + 0x3b4]
mov esi, eax
add esp, 0xc
test si, si
jne 0x4a31dc
lea eax, [esp + 0x1c]
push eax
call fcn.00454550
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3a0]
shr eax, 2
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x9c]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x92]
inc eax
mov dword [esp + 0x10], ecx
mov dword [ebx + 0x9c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x96]
mov esi, dword [esp + 0x48]
cmp esi, edx
je 0x4a3afe
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x9c]
mov dword [esp + 0x7c], edx
lea esi, [edx + 1]
mov dword [ebx + 0x9c], esi
jmp 0x4a3b02
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x96], edx
mov edx, dword [esp + 0x20]
mov dword [eax + edi + 2], edx
mov edx, dword [esp + 0x96]
mov dword [eax + edi + 6], edx
mov eax, ecx
jmp 0x4a3b33
lea eax, [esp + 0x90]
push eax
push edi
call fcn.00453c70
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x92], eax
cmp ecx, eax
je 0x4a3b4f
mov ecx, dword [esp + 0x39c]
mov dword [esp + 0x18], ecx
jmp 0x4a3b57
mov dword [esp + 0x18], 0xffffffff
xor edi, edi
push edi
push edi
push 0x3c
push 2
push ebp
call fcn.0042f060
add esp, 0x14
test eax, eax
jle 0x4a3c15
lea edx, [esp + 0xf4]
lea eax, [esp + 0x254]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
lea ecx, [edi + 0x201]
push eax
push edx
mov word [eax], cx
call fcn.00453700
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 8
test esi, esi
mov dword [eax], esi
je 0x4a3be5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x40]
mov ax, word [esi + edx + 2]
push eax
push ecx
call fcn.004a4cd0
add esp, 0xc
lea edx, [esp + 0xd0]
mov ecx, ebx
push eax
push edx
call fcn.004a4da0
mov ecx, dword [esp + 0x14]
mov word [esi + ecx + 2], ax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push 0
push 0
push 0x3c
add ecx, 0x40
add eax, 4
push 2
push ebp
inc edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
call fcn.0042f060
add esp, 0x14
cmp edi, eax
jl 0x4a3b86
mov esi, dword [esp + 0x80]
mov ecx, 0x651a58
push esi
call fcn.0041a8c0
mov edx, dword [esp + 0x5c]
mov ecx, ebx
push edx
push esi
call fcn.0049fbb0
lea eax, [esp + 0x154]
mov word [esp + 0x154], 0x7f40
push eax
push esi
mov word [esp + 0x15e], 0x7f41
call fcn.00453820
add esp, 8
test eax, eax
je 0x4a3c8c
mov eax, dword [ebx + 0x9c]
lea ecx, [esp + 0x154]
mov dword [esp + 0x156], eax
inc eax
push ecx
push esi
mov word [esp + 0x15c], 0x7fe5
mov dword [ebx + 0x9c], eax
call fcn.004539d0
add esp, 8
push esi
mov ecx, 0x651a58
call fcn.0041a8b0
mov edi, dword [esp + 0x39c]
mov edx, dword [esp + 0x3a0]
add eax, 8
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x5a]
push edx
add eax, edi
push eax
call fcn.0048dfa0
add esp, 8
mov ecx, ebx
push eax
push edi
call fcn.004915f0
push 0
push 0
push 0x3c
push 2
push ebp
mov dword [esp + 0x40], 0
call fcn.0042f060
add esp, 0x14
test eax, eax
jle 0x4a3d4b
lea ecx, [esp + 0xf4]
lea edx, [esp + 0x256]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
test eax, eax
je 0x4a3d13
mov ecx, dword [esp + 0x30]
mov dx, word [ecx]
mov ecx, dword [esp + 0x14]
mov word [eax + ecx + 2], dx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0x3c
inc ecx
add eax, 0x40
add edx, 4
push 2
push ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.0042f060
mov ecx, dword [esp + 0x40]
add esp, 0x14
cmp ecx, eax
jl 0x4a3cf9
push esi
mov ecx, 0x651a58
call fcn.0041a8c0
push esi
mov ecx, 0x651a58
call fcn.0041a860
add edi, dword [esp + 0x56]
mov dword [esp + 0x39c], edi
jmp 0x4a3725
push edi
mov ecx, 0x651a58
call fcn.0041a860
mov edi, dword [esp + 0x40]
mov ecx, 0x651a58
push edi
call fcn.0041a8c0
push edi
mov ecx, 0x651a58
call fcn.0041a860
mov edx, dword [esp + 0x3c]
mov ecx, 0x651a58
push edx
call fcn.0041a860
mov eax, dword [esp + 0x3b0]
mov ecx, dword [esp + 0x28]
test si, si
mov dword [eax], ecx
jne 0x4a3e25
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a3e25
mov edx, dword [esp + 0x3a0]
mov ecx, ebx
push edx
call fcn.00485020
push eax
mov dword [esp + 0x2c], eax
call fcn.004952e0
mov edi, eax
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, edi
jge 0x4a3e25
push 1
push edi
push eax
push 7
push ebp
mov ecx, ebx
call fcn.004917e0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, 0x651a58
call fcn.0041a7c0
mov edx, dword [esp + 0x44]
push 1
push edi
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00490180
mov eax, dword [esp + 0x28]
mov ecx, 0x651a58
push eax
call fcn.0041a860
cmp word [ebx + 0x3de], 0
mov dword [esp + 0x14], 0
jbe 0x4a3ec9
xor edi, edi
mov ecx, dword [ebx + 0x3e4]
mov eax, dword [edi + ecx + 0x28]
cmp eax, 0xffffffff
je 0x4a3eac
push 0
push eax
push eax
mov ecx, ebx
call fcn.0049e6d0
push 0x3fffffff
mov ecx, ebx
call fcn.00482260
push eax
mov ecx, ebx
call fcn.0048f720
push 1
mov ecx, ebx
call fcn.004822a0
push eax
call fcn.0049eaf0
add esp, 4
mov ecx, ebx
push eax
call fcn.00482290
push eax
mov ecx, ebx
call fcn.004b21a0
push 0
push ebp
mov ecx, ebx
call fcn.0049aa40
mov ecx, ebx
call fcn.0049eb50
mov edx, dword [ebx + 0x3e4]
mov dword [edi + edx + 0x28], 0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [ebx + 0x3de]
inc eax
add edi, 0x2c
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a3e3d
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x384
ret 0x24