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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50b021
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x574be0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
call fcn.00409800
test al, al
jne 0x403b1f
mov eax, 0x80004001
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x7c], 0
mov byte [eax], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 4
mov dword [esp + 0x78], 0x54bc54
mov dword [esp + 0x138], 0
mov dword [esp + 0xa8], 0
lea ecx, [esp + 0xac]
mov byte [esp + 0x138], 1
call fcn.0041fb10
mov esi, dword [ebp + 8]
mov byte [esp + 0x138], 2
test esi, esi
je 0x403b95
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x403ba6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0xa8], esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x403cd3
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
push 0x18
call fcn.004ea3f3
mov esi, eax
add esp, 4
test esi, esi
je 0x403be4
mov dword [esi + 4], 0
mov dword [esi], 0x54bc88
jmp 0x403be6
xor esi, esi
mov dword [esp + 0x5c], esi
test esi, esi
je 0x403bf4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
mov byte [esp + 0x138], 3
lea eax, [esp + 0xa8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
add eax, dword [ecx + ebx*8]
push 0x28
adc edi, dword [ecx + ebx*8 + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
call fcn.004ea3f3
mov edi, eax
add esp, 4
test edi, edi
je 0x403c48
mov dword [edi + 4], 0
mov dword [edi], 0x54bc28
mov dword [edi + 8], 0
jmp 0x403c4a
xor edi, edi
mov dword [esp + 0x28], edi
test edi, edi
je 0x403c58
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [esp + 0x138], 4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x403c73
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp + 0x14]
mov dword [edi + 8], esi
mov eax, dword [ecx + ebx*8]
mov ecx, dword [ecx + ebx*8 + 4]
mov dword [edi + 0x10], eax
lea eax, [esp + 0x28]
mov dword [edi + 0x14], ecx
push eax
lea ecx, [esp + 0x7c]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
call fcn.00404ae0
mov byte [esp + 0x138], 3
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov byte [esp + 0x138], 2
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x24]
inc ebx
cmp ebx, dword [esi + 0x30]
jl 0x403bc5
mov edi, dword [esi + 8]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x60], edi
call fcn.00403a30
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 8
mov dword [esp + 0x114], 0x54bce8
lea edx, [esp + 0xc4]
mov ecx, esi
mov byte [esp + 0x138], 5
call fcn.004035e0
mov ebx, dword [esp + 0x18]
cmp byte [ebx], 0
je 0x403d58
lea edx, [ebx + 4]
lea ecx, [esp + 0xc4]
call fcn.00403840
test al, al
sete al
test al, al
je 0x40400b
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x78]
lea ecx, [ebx + 0x78]
push 0
call dword [eax + 4]
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x403d7d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x74], 0
cmp byte [ebx + 0x68], 0
je 0x403dd2
push 0x88
call fcn.004ea3f3
add esp, 4
test eax, eax
je 0x403d9f
mov ecx, eax
call fcn.004048a0
mov esi, eax
jmp 0x403da1
xor esi, esi
mov dword [ebx + 0x6c], esi
test esi, esi
je 0x403dae
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x403dbb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x74], esi
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x403dca
add eax, 4
jmp 0x403dcc
xor eax, eax
mov esi, dword [ebp + 0x18]
mov dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
lea edx, [esp + 0xc4]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x40476c
xor ecx, ecx
mov dword [esp + 0x20], ecx
test edi, edi
jle 0x403f6b
lea esp, [esp]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
sub esp, 8
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x144], 8
push dword [eax + 4]
lea edx, [esp + 0x3c]
push dword [eax]
lea ecx, [esp + 0x28]
call fcn.0040fae0
mov ebx, eax
mov byte [esp + 0x14c], 7
mov eax, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x403e5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
test ebx, ebx
jne 0x403f3e
mov dword [esp + 0x1c], 0
mov byte [esp + 0x138], 9
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x14], 1
jne 0x403eb8
cmp dword [eax + 0x18], 1
jne 0x403eb8
test esi, esi
je 0x403f39
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov ebx, esi
cmp byte [eax + 0x68], 0
mov dword [esp + 0x1c], ebx
je 0x403edb
mov ecx, dword [eax + 0x6c]
push esi
call fcn.0040ea60
jmp 0x403edb
test edi, edi
je 0x403f39
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov ebx, edi
cmp byte [eax + 0x68], 0
mov dword [esp + 0x1c], ebx
je 0x403edb
mov ecx, dword [eax + 0x6c]
push edi
call fcn.0040eb10
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 0x78]
call fcn.00404ae0
mov byte [esp + 0x138], 7
test ebx, ebx
je 0x403efe
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x138], 6
test edi, edi
je 0x403f10
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov byte [esp + 0x138], 5
test esi, esi
je 0x403f22
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x60]
jge 0x403f6b
mov esi, dword [ebp + 0x18]
jmp 0x403e00
mov ebx, 0x80004001
mov byte [esp + 0x138], 6
test edi, edi
je 0x403f50
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov byte [esp + 0x138], 5
test esi, esi
je 0x40476c
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40476c
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xc]
mov eax, dword [ebx + 4]
push 0
lea ecx, [ebx + 4]
call dword [eax + 4]
lea eax, [esp + 0xc4]
push eax
lea ecx, [ebx + 4]
call fcn.00405450
push dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
push 0
lea ecx, [ebx + 0x18]
call dword [eax + 4]
lea eax, [esp + 0xd8]
push eax
lea ecx, [ebx + 0x18]
call fcn.00405450
push dword [ebx + 0x34]
mov eax, dword [ebx + 0x2c]
push 0
lea ecx, [ebx + 0x2c]
call dword [eax + 4]
lea eax, [esp + 0xec]
push eax
lea ecx, [ebx + 0x2c]
call fcn.004053d0
push dword [ebx + 0x48]
mov eax, dword [ebx + 0x40]
push 0
lea ecx, [ebx + 0x40]
call dword [eax + 4]
lea eax, [esp + 0x100]
push eax
lea ecx, [ebx + 0x40]
call fcn.004053d0
push dword [ebx + 0x5c]
mov eax, dword [ebx + 0x54]
push 0
lea ecx, [ebx + 0x54]
call dword [eax + 4]
lea eax, [esp + 0x114]
push eax
lea ecx, [ebx + 0x54]
call fcn.00405450
mov esi, dword [ebp + 0x18]
mov byte [ebx], 1
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x60], ecx
jle 0x4045e8
xor edx, edx
mov dword [esp + 0x14], edx
jmp 0x404040
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], 0
mov ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], ebx
mov eax, dword [ecx + 0x84]
mov esi, dword [edx + eax]
mov byte [esp + 0x138], 0xa
mov eax, dword [esi]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 0x54ba80
push eax
call dword [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4040a4
mov edx, dword [ebx + 0xc]
cmp edx, 0xffffffff
ja 0x40458a
mov ecx, dword [eax]
push edx
push dword [ebx + 0x10]
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x10]
test ebx, ebx
jne 0x4045cd
mov byte [esp + 0x138], 5
test eax, eax
je 0x4040b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x2c], 0
je 0x40410e
mov dword [esp + 0x10], 0
mov byte [esp + 0x138], 0xb
mov eax, dword [esi]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 0x54b9dc
push eax
call dword [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4040fc
push dword [ebp + 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x404591
mov eax, dword [esp + 0x10]
mov byte [esp + 0x138], 5
test eax, eax
je 0x40410e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
mov byte [esp + 0x138], 0xc
mov eax, dword [esi]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 0x54bacc
push eax
call dword [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404260
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x4045c8
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x1c]
mov byte [esp + 0x138], 0xd
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x4045b8
mov dword [esp + 0x90], 0x54ba30
mov dword [esp + 0x94], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x98], ebx
mov eax, dword [ebp + 0x28]
mov byte [esp + 0x138], 0xe
push dword [esp + 0x1c]
lea ecx, [esp + 0xa0]
mov byte [eax], 1
call fcn.00402570
mov byte [esp + 0x138], 0xf
mov esi, dword [esp + 0xa0]
lea eax, [esi + esi]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4041eb
push eax
call fcn.004ea3f3
add esp, 4
mov ebx, eax
push 0
mov dword [esp + 0x24], ebx
call fcn.004ea37d
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], eax
test esi, esi
jle 0x404212
mov edx, dword [esp + 0x9c]
mov ecx, ebx
sub edx, ebx
lea ebx, [ebx]
movzx eax, word [edx + ecx]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
lea ecx, [ecx + 2]
dec esi
jne 0x404200
push dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.004ea37d
add esp, 4
push dword [esp + 0x20]
test ebx, ebx
jne 0x4045b0
mov dword [esp + 0x94], 0x54ba30
call fcn.004ea37d
add esp, 4
push dword [esp + 0x1c]
call dword [0x51b31c]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x138], 5
test eax, eax
je 0x404272
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x5c]
add dword [esp + 0x14], 4
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 4
mov dword [esp + 0x34], 0x54bc60
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 4
mov dword [esp + 0x48], 0x54bc60
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x13c], 0x11
call fcn.0041aac0
push esi
lea ecx, [esp + 0x4c]
call fcn.0041aac0
test esi, esi
je 0x404359
mov ecx, dword [esp + 0x50]
mov edi, dword [ebp + 0x18]
lea esp, [esp]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 0x48]
lea ebx, [eax + edx*8]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jne 0x40433e
mov eax, 1
cmp edx, 0x40
jl 0x404323
mov eax, edx
shr eax, 2
jmp 0x40432e
cmp edx, 8
mov ecx, 8
cmovge eax, ecx
add eax, edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0041aac0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
inc dword [esp + 0x2c]
mov dword [eax + ecx*4], ebx
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
dec esi
jne 0x404300
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x24], ebx
jbe 0x4044e7
mov edx, dword [esp + 0x3c]
lea ecx, [ecx]
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov esi, dword [ecx + 0x1c]
test esi, esi
jle 0x404395
mov ebx, dword [ecx + 0x20]
mov ecx, ebx
cmp dword [ecx], edi
je 0x40442b
inc eax
add ecx, 8
cmp eax, esi
jl 0x404381
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x18]
xor esi, esi
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x4043b4
mov eax, dword [eax + 0x34]
cmp dword [eax], edi
je 0x404481
inc esi
add eax, 4
cmp esi, ecx
jl 0x4043a4
mov byte [esp + 0x138], 0x10
push dword [esp + 0x50]
lea ecx, [esp + 0x4c]
push 0
mov dword [esp + 0x50], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x54]
call fcn.004ea37d
add esp, 4
mov byte [esp + 0x138], 5
push dword [esp + 0x3c]
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x3c], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x40]
call fcn.004ea37d
mov ebx, 0x80004005
jmp 0x404769
test eax, eax
js 0x404391
mov ecx, dword [ebx + eax*8 + 4]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x48]
lea esi, [eax + ecx*8]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jne 0x404474
mov eax, 1
cmp ecx, 0x40
jl 0x404459
mov eax, ecx
shr eax, 2
jmp 0x404464
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0041aac0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
mov dword [eax + edx*4], esi
jmp 0x4044ca
test esi, esi
js 0x4043b4
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jne 0x4044bd
mov eax, 1
cmp ecx, 0x40
jl 0x4044a2
mov eax, ecx
shr eax, 2
jmp 0x4044ad
cmp ecx, 8
mov edx, 8
cmovge eax, edx
add eax, ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0041aac0
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + esi*8]
mov eax, dword [esp + 0x40]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x3c]
inc ebx
inc edx
inc edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], edi
cmp ebx, dword [esp + 0x24]
jb 0x404370
push dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x44]
mov ecx, dword [ebx + 0x70]
push dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [esp + 0x138], 0x10
push dword [esp + 0x50]
lea ecx, [esp + 0x4c]
push 0
mov dword [esp + 0x50], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x54]
call fcn.004ea37d
add esp, 4
mov byte [esp + 0x138], 5
push dword [esp + 0x3c]
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x3c], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x40]
call fcn.004ea37d
mov ecx, dword [esp + 0x34]
inc ecx
add esp, 4
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x60]
jge 0x4045e8
mov esi, dword [ebp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x404040
mov ebx, 0x80004001
jmp 0x4045cd
mov byte [esp + 0x138], 5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40476c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40476c
call fcn.004ea37d
add esp, 4
push dword [esp + 0x1c]
call dword [0x51b31c]
mov eax, dword [esp + 0x10]
jmp 0x4045cd
mov ebx, 0x80004005
mov byte [esp + 0x138], 5
test eax, eax
je 0x40476c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40476c
mov eax, dword [esp + 0x10c]
mov edi, dword [esp + 0xcc]
mov edx, dword [eax]
xor ecx, ecx
test edi, edi
je 0x404618
mov eax, dword [esp + 0xd0]
add eax, 4
mov esi, dword [eax]
cmp edx, esi
jb 0x40462f
inc ecx
sub edx, esi
add eax, 8
cmp ecx, edi
jb 0x404608
push 0x55e7c0
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], 1
call fcn.004f4cb0
cmp byte [ebx + 0x68], 0
je 0x40463b
mov eax, dword [ebx + 0x6c]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x60], 0
jne 0x404649
xor ebx, ebx
jmp 0x40476c
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 4
mov dword [esp + 0x64], 0x54bc10
mov byte [esp + 0x138], 0x12
push dword [esp + 0x80]
lea ecx, [esp + 0x68]
call fcn.0041aac0
mov edx, dword [esp + 0x80]
xor esi, esi
test edx, edx
jle 0x4046fa
mov ecx, dword [esp + 0x6c]
lea ebx, [esi + 8]
lea ecx, [ecx]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x68]
mov eax, dword [eax + esi*4]
mov edi, dword [eax]
cmp ecx, edx
jne 0x4046da
mov eax, 1
cmp edx, 0x40
jl 0x4046c5
mov eax, edx
shr eax, 2
jmp 0x4046ca
cmp edx, ebx
cmovge eax, ebx
add eax, edx
push eax
lea ecx, [esp + 0x68]
call fcn.0041aac0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
inc esi
mov dword [eax + ecx*4], edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x80]
inc ecx
mov dword [esp + 0x6c], ecx
cmp esi, edx
jl 0x4046a0
mov ebx, dword [esp + 0x18]
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push 1
push 0
lea esi, [esp + 0x98]
push esi
push edx
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x74]
push 0
push dword [esp + 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov byte [esp + 0x138], 5
push dword [esp + 0x6c]
lea ecx, [esp + 0x68]
push 0
mov ebx, eax
mov dword [esp + 0x6c], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x70]
call fcn.004ea37d
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
add esp, 4
mov byte [esp + 0x138], 0x13
push dword [esp + 0x11c]
lea ecx, [esp + 0x118]
push 0
mov dword [esp + 0x11c], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x120]
call fcn.004ea37d
add esp, 4
lea ecx, [esp + 0xc4]
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov byte [esp + 0x138], 2
call fcn.004034b0
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x13c], 0
call dword [0x51b0bc]
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x404800
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x78], 0x54bc54
mov dword [esp + 0x138], 0x14
push dword [esp + 0x80]
lea ecx, [esp + 0x7c]
push 0
call dword [0x54bc58]
mov dword [esp + 0x138], 0xffffffff
push dword [esp + 0x80]
lea ecx, [esp + 0x7c]
push 0
mov dword [esp + 0x80], 0x54b998
call dword [0x54b99c]
push dword [esp + 0x84]
call fcn.004ea37d
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c