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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [esp + 0x48]
mov edi, ecx
push 4
xor ebx, ebx
push eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0x8c], ebx
call fcn.00458f10
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.00458f10
add esp, 0x10
lea ecx, [esp + 0x138]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x64], ebx
call fcn.004947b0
lea ecx, [esp + 0x168]
call fcn.004947b0
lea edx, [esp + 0xc]
push 4
push edx
call fcn.00458f10
add esp, 8
lea eax, [esp + 0x48]
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x9c]
mov dword [esp + 0x44], ebx
call fcn.004679c0
test eax, eax
je 0x47b488
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 2
je 0x47b42d
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x47def6
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push eax
call fcn.00485da0
add esp, 4
test eax, eax
jne 0x47b658
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [ecx], 0xc0000022
je 0x47b46b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x168]
call fcn.00464b40
lea ecx, [esp + 0x138]
call fcn.00464b40
jmp 0x47df8a
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x50]
lea eax, [esp + 0x168]
push eax
push ebx
push 0x40
push ebx
push ecx
lea ecx, [esp + 0x1c0]
call fcn.00498110
mov ecx, eax
call fcn.004c87c0
push eax
push esi
mov ecx, edi
call fcn.0046e9b0
test eax, eax
jne 0x47b4c9
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
jmp 0x47def6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x16c]
call fcn.00498020
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x3c], esi
je 0x47b4f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, 1
jne 0x47b51c
mov eax, dword [ebp + 0x34]
mov dword [eax], esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x47b46b
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
jmp 0x47b467
cmp esi, 2
je 0x47b658
cmp esi, 3
je 0x47b658
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x48]
lea eax, [esp + 0x138]
push eax
push ebx
push 0x40
push ebx
push ecx
lea ecx, [esp + 0x1c0]
call fcn.00498110
mov ecx, eax
call fcn.004c87c0
push eax
push esi
mov ecx, edi
call fcn.0046e9b0
test eax, eax
je 0x47b5d5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x13c]
call fcn.00498020
push eax
lea ecx, [esp + 0x30]
call fcn.00463f90
lea ecx, [esp + 0x1c]
call fcn.0048e940
lea ecx, [esp + 0x138]
call fcn.004c66e0
mov ecx, eax
call fcn.004856d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x14]
neg esi
sbb esi, esi
add esi, 1
mov dword [esp + 0x98], esi
call eax
cmp eax, 1
mov dword [esp + 0x64], eax
jne 0x47b5c3
mov ecx, dword [ebp + 0x34]
mov dword [ecx], eax
jmp 0x47b5de
cmp eax, 2
je 0x47b625
cmp eax, 3
je 0x47b625
cmp eax, ebx
jne 0x47b61a
cmp esi, ebx
jne 0x47b629
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
lea ecx, [esp + 0xc]
call fcn.00499300
lea ecx, [esp + 0x168]
call fcn.00464b40
lea ecx, [esp + 0x138]
call fcn.00464b40
lea ecx, [esp + 0x2c]
call fcn.0048e940
lea ecx, [esp + 0x48]
call fcn.0048e940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp + 0x34]
mov dword [eax], 1
jmp 0x47b5de
cmp esi, ebx
je 0x47b658
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
cmp eax, 2
je 0x47b658
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x47b61a
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x47b5de
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.00458f10
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, ebx
je 0x47b6af
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x58]
push ecx
push 0x100bc638
push eax
call edx
test eax, eax
je 0x47b6af
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
mov dword [ecx], 0xc0000229
je 0x47b503
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x58], ebx
jmp 0x47b503
push 0x200
push ebx
mov dword [esp + 0x114], 0xff
call fcn.00458fa0
mov ecx, dword [ebp + 0x2c]
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], ebx
mov word [eax], bx
je 0x47b718
cmp dword [ecx + 4], ebx
je 0x47b718
push ecx
lea eax, [esp + 0x118]
push eax
call fcn.0043f740
mov eax, dword [eax]
add esp, 8
push eax
lea ecx, [esp + 0x108]
call fcn.0043e5a0
lea ecx, [esp + 0x114]
call fcn.0043e810
mov eax, dword [esp + 0x104]
cmp dword [0x100ccb64], ebx
je 0x47b76a
push 0x100b0b10
sub esp, 0xc
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0043e5a0
push 0x100bcdc8
lea ecx, [esp + 0x128]
call fcn.00454470
mov ecx, eax
call fcn.004533c0
mov ecx, eax
call fcn.0043f710
mov ecx, eax
call fcn.004533c0
lea ecx, [esp + 0x114]
call fcn.00453280
lea ecx, [esp + 0x198]
call fcn.00498320
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x198]
push ecx
push esi
mov ecx, edi
call fcn.0046b360
lea ecx, [esp + 0x198]
call fcn.004c87c0
push eax
lea edx, [esp + 0x130]
push edx
call fcn.0043f740
add esp, 8
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [edi + 0x174]
mov dword [esp + 0x118], ebx
mov dword [esp + 0x24], esi
call fcn.00468a30
mov eax, dword [esp + 0x110]
cmp eax, ebx
mov esi, dword [0x100b01cc]
je 0x47b7dd
push eax
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x47b7e7
push eax
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [ebp + 8]
add edi, 0x108
push eax
mov ecx, edi
call fcn.004683d0
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [esp + 0x1c4], esi
je 0x47d0a0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00483fa0
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.00463eb0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x47b838
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
mov ecx, edi
call fcn.0049c210
mov eax, dword [esp + 0x104]
sub esp, 0xc
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0043e5a0
mov ecx, dword [esp + 0x18]
call fcn.00484030
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp eax, 2
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x100], 0x100b0384
mov word [esp + 0xfc], bx
mov word [esp + 0xfe], bx
je 0x47b8b7
cmp eax, 3
jne 0x47c178
lea ecx, [esp + 0xf4]
call fcn.00498320
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x16c]
call fcn.00498020
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0xd8]
push edx
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, eax
call fcn.00498450
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0xf0]
push edx
lea ecx, [esp + 0x170]
call fcn.004c66e0
mov ecx, eax
call fcn.00485500
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00485db0
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00498440
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x47b93e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [0x100cca70]
push 0x4021
push 7
lea ecx, [esp + 0xf4]
mov dword [esp + 0x40], ebx
add esi, 0x15c
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
push eax
push ebx
push 0x40
lea ecx, [esp + 0x108]
call fcn.004c87c0
push eax
push ebx
lea ecx, [esp + 0x1c8]
call fcn.00498110
mov ecx, eax
call fcn.004c87c0
mov edx, dword [esi]
push eax
push 0x100001
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
mov ecx, dword [0x100cca70]
push 2
push ebx
push ebx
lea edx, [esp + 0x48]
add ecx, 0x48c
push edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
xor esi, esi
mov dword [esp + 0xec], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], ecx
call dword [0x100b0218]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x100b0218]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
jne 0x47c0f9
mov dword [esp + 0x10], 0x100
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x47ba2f
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00459050
mov edx, dword [0x100cca70]
add edx, 0x54c
add esp, 4
cmp dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
setne dl
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
push edx
mov edx, dword [esp + 0x24]
neg edx
sbb edx, edx
and edx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x24]
push 1
push edx
push ecx
push eax
lea ecx, [esp + 0x104]
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x58]
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
cmp eax, 0xc0000004
je 0x47bdba
cmp eax, 0x80000005
je 0x47bdba
cmp eax, 0xc0000023
je 0x47bdba
cmp eax, ebx
jne 0x47bdc7
cmp dword [esp + 0x20], ebx
je 0x47bad0
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00458f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x47bc8e
movzx edx, byte [eax + 0x10042fcc]
jmp dword [edx*4 + 0x10042fb8]
push 0x100bc614
push esi
call fcn.00460e60
add esp, 8
test eax, eax
je 0x47bd2d
xor ecx, ecx
mov eax, 0x100bc614
jmp 0x47bcb0
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x47bcb0
mov edx, dword [esp + 0xdc]
sub edx, ecx
push esi
lea ecx, [esp + 0x50]
mov word [esi + edx*2 - 2], bx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0043e5a0
lea eax, [esp + 0x4c]
mov ecx, eax
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00465640
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x47bd10
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47ba16
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebx
jmp 0x47ba16
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004841a0
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0043e5a0
lea edx, [esp + 0x8c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xa4]
call fcn.00465640
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x47bd9d
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47ba16
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
jmp 0x47ba16
add dword [esp + 0x10], 0x100
jmp 0x47ba16
cmp dword [esp + 0x38], ebx
je 0x47c0f9
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x47bdfa
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x40]
push eax
call fcn.00459050
mov edx, dword [0x100cca70]
add edx, 0x54c
add esp, 4
cmp dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], edx
setne dl
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
push edx
mov edx, dword [esp + 0x24]
neg edx
sbb edx, edx
and edx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x24]
push 1
push edx
push ecx
push eax
lea ecx, [esp + 0x104]
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x54]
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
cmp eax, 0xc0000004
je 0x47c0ec
cmp eax, 0x80000005
je 0x47c0ec
cmp eax, 0xc0000023
je 0x47c0ec
cmp eax, ebx
jne 0x47c0f9
cmp dword [esp + 0x20], ebx
je 0x47be9b
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00458f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x47c02d
movzx edx, byte [eax + 0x10043004]
jmp dword [edx*4 + 0x10042ff0]
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.0043e5a0
push 0x200
push ebx
mov dword [esp + 0x5c], 0xff
call fcn.00458fa0
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov word [eax], bx
call fcn.004653d0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x47c09e
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x47c0bb
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x30], ebx
jne 0x47c0cf
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x5c]
push eax
call fcn.004841a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47bde1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x47bde1
add dword [esp + 0x40], 0x100
jmp 0x47bde1
lea ecx, [esp + 0x3c]
call fcn.00460970
lea ecx, [esp + 0x9c]
call fcn.00465770
lea ecx, [esp + 0x9c]
call fcn.00465770
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x47c13d
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x34], ecx
call fcn.0043c000
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, ebx
jne 0x47c125
cmp esi, ebx
je 0x47c14a
push esi
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x47c163
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x38]
call fcn.00460970
lea ecx, [esp + 0xf4]
call fcn.00498440
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x47cf09
cmp dword [esp + 0x98], ebx
je 0x47c29f
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x38]
push eax
call edx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x3c]
push edx
call eax
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00458f10
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
jne 0x47c284
lea esp, [esp]
cmp dword [esp + 0x98], ebx
je 0x47c1f7
lea ecx, [esp + 0xb4]
call fcn.00465710
jmp 0x47c24c
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xf8]
push eax
call edx
mov ecx, eax
call fcn.004c87c0
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.0043f740
add esp, 8
push eax
lea ecx, [esp + 0xbc]
call fcn.004654b0
lea ecx, [esp + 0x114]
call fcn.0043e810
lea ecx, [esp + 0xf4]
call fcn.00498440
lea ecx, [esp + 0x20]
call fcn.0048e940
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00458f10
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x47c1e0
lea ecx, [esp + 0x20]
call fcn.0048e940
lea ecx, [esp + 0x3c]
call fcn.0048e940
lea ecx, [esp + 0x38]
call fcn.0048e940
mov eax, dword [esp + 0x64]
cmp eax, 2
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
je 0x47c2bf
cmp eax, 3
jne 0x47c962
lea ecx, [esp + 0xf4]
call fcn.00498320
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x60]
push eax
call edx
mov ecx, eax
call fcn.00498450
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x140]
call fcn.004c66e0
mov ecx, eax
call fcn.00485500
push eax
lea edx, [esp + 0xe0]
push edx
call fcn.00485db0
add esp, 0xc
lea ecx, [esp + 0x5c]
call fcn.00498440
mov esi, dword [0x100cca70]
push 0x4021
push 7
lea ecx, [esp + 0xf4]
mov dword [esp + 0x48], ebx
add esi, 0x15c
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
push eax
push ebx
push 0x40
lea ecx, [esp + 0x108]
call fcn.004c87c0
push eax
push ebx
lea ecx, [esp + 0x1c8]
call fcn.00498110
mov ecx, eax
call fcn.004c87c0
mov edx, dword [esi]
push eax
push 0x100001
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x47c94d
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x47c3bd
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x38]
push esi
call fcn.00459050
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x28], esi
mov esi, dword [0x100cca70]
add esi, 0x54c
cmp ecx, ebx
setne dl
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x24]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x104]
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
cmp eax, 0xc0000004
je 0x47c940
cmp eax, 0x80000005
je 0x47c940
cmp eax, 0xc0000023
je 0x47c940
cmp eax, ebx
jne 0x47c94d
cmp dword [esp + 0x3c], ebx
je 0x47c456
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00458f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x47c831
movzx edx, byte [eax + 0x1004303c]
jmp dword [edx*4 + 0x10043028]
push 0x100bc614
push edi
call fcn.00460e60
add esp, 8
test eax, eax
je 0x47c8b3
xor ecx, ecx
mov eax, 0x100bc614
lea ebx, [ebx]
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x47c850
mov eax, dword [esp + 0xd0]
sub eax, ecx
push edi
lea ecx, [esp + 0x50]
mov word [edi + eax*2 - 2], bx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0043e5a0
lea ecx, [esp + 0x4c]
push ecx
mov edx, ecx
push edx
lea ecx, [esp + 0x128]
call fcn.00465640
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x47c923
push eax
call fcn.00459000
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jmp 0x47c920
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
call fcn.004841a0
push edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0043e5a0
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
lea ecx, [esp + 0x128]
call fcn.00465640
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x47c923
push eax
call fcn.00459000
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47c3a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x47c3a4
add dword [esp + 0x38], 0x100
jmp 0x47c3a4
lea ecx, [esp + 0x40]
call fcn.00460970
lea ecx, [esp + 0xf4]
call fcn.00498440
mov esi, dword [0x100cca70]
push 2
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
add esi, 0x48c
call dword [0x100b0218]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [0x100b0218]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x47ced4
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
lea esp, [esp]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x47c9c9
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x38]
push esi
call fcn.00459050
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x28], esi
mov esi, dword [0x100cca70]
add esi, 0x54c
cmp ecx, ebx
setne dl
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x24]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x104]
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x38]
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
cmp eax, 0xc0000004
je 0x47cea9
cmp eax, 0x80000005
je 0x47cea9
cmp eax, 0xc0000023
je 0x47cea9
cmp eax, ebx
jne 0x47ceb6
cmp dword [esp + 0x3c], ebx
je 0x47ca62
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00458f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x47cdbe
movzx edx, byte [eax + 0x10043074]
jmp dword [edx*4 + 0x10043060]
push edi
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
call fcn.0043e5a0
push 0x200
push ebx
mov dword [esp + 0xf0], 0xff
call fcn.00458fa0
add esp, 8
mov dword [esp + 0xe0], eax
mov word [eax], bx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x128]
mov dword [esp + 0xec], ebx
call fcn.004653d0
mov esi, eax
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x47ce51
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov eax, dword [esp + 0xc0]
cmp eax, ebx
je 0x47ce7a
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
cmp esi, ebx
jne 0x47ce8c
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004841a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x47c9b0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebx
jmp 0x47c9b0
add dword [esp + 0x38], 0x100
jmp 0x47c9b0
mov ecx, dword [0x100cca70]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x2ac]
add ecx, 0x2ac
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
lea ecx, [esp + 0x120]
call fcn.00465770
lea ecx, [esp + 0x120]
call fcn.00465770
mov eax, dword [esp + 0x120]
cmp eax, ebx
je 0x47cf09
mov esi, dword [eax + 4]
push eax
call fcn.0043c000
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x47cef7
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00498320
push 0x200
mov esi, 0xff
push ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
call fcn.00458fa0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov word [eax], bx
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.00458f10
push 0x200
push ebx
mov dword [esp + 0x1c0], esi
call fcn.00458fa0
mov word [eax], bx
mov ecx, dword [0x100cca70]
add esp, 0x18
cmp dword [ecx + 0x98], ebx
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ebx
jne 0x47cfe6
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ecx, dword [esp + 0x58]
jne 0x47cf94
cmp ecx, ebx
je 0x47cfe6
mov edx, dword [ebp + 0x24]
lea esi, [edx - 2]
cmp esi, 0x23
ja 0x47dc2f
movzx esi, byte [esi + 0x100430ac]
jmp dword [esi*4 + 0x10043098]
mov ecx, dword [esp + 0xc]
call fcn.00484220
mov eax, dword [esp + 0x1a0]
cmp eax, ebx
je 0x47d003
push eax
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x47d017
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x47d034
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x1d4]
call fcn.00498440
lea ecx, [esp + 0x4c]
call fcn.00465770
lea ecx, [esp + 0x4c]
call fcn.00465770
lea ecx, [esp + 0x4c]
call fcn.00499270
cmp edi, ebx
je 0x47d068
push edi
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x47d081
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0xb4]
call fcn.00465710
lea ecx, [esp + 0xb4]
call fcn.00499270
mov esi, dword [esp + 0x1c4]
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0xc]
mov dword [eax], ebx
call fcn.00484300
test eax, eax
je 0x47dd92
mov edi, dword [ebp + 0x38]
mov dword [edi], 0xc000000f
jmp 0x47de58
cmp eax, ebx
je 0x47dc3e
mov eax, dword [ebp + 0x34]
mov dword [eax], 1
jmp 0x47dc7d
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov edx, dword [ebp + 0x34]
mov esi, dword [ebp + 0x14]
mov dword [ecx], 0xc000000d
mov dword [edx], ebx
je 0x47dc6a
mov ecx, dword [ebp + 0x18]
push ebx
push ecx
push esi
push eax
call dword [0x100b0098]
push eax
call dword [0x100ccd78]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xb0]
push ebx
push ebx
push esi
push edx
call fcn.0046b4c0
mov eax, dword [esp + 0x1a0]
push eax
call fcn.00459000
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
je 0x47dca1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x47dcbe
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x1d4]
call fcn.00498440
lea ecx, [esp + 0x4c]
call fcn.00465770
lea ecx, [esp + 0x4c]
call fcn.00465770
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x47dcf6
mov esi, dword [eax + 4]
push eax
call fcn.0043c000
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x47dce4
cmp edi, ebx
je 0x47dd03
push edi
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x47dd1c
push eax
call fcn.00459000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0xb4]
call fcn.00465710
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x47dd45
mov edi, dword [eax + 4]
push eax
call fcn.0043c000
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x47dd33
mov eax, dword [esp + 0x12c]
cmp eax, ebx
je 0x47dd59
push eax
call fcn.00459000
add esp, 4
lea ecx, [esp + 0x198]
call fcn.00498440
mov eax, dword [esp + 0x104]
cmp eax, ebx
je 0x47dd79
push eax
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x47def6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x47def2
cmp byte [ebp + 0x30], bl
je 0x47dda0
mov ecx, dword [esp + 0xc]
call fcn.00484220
mov ecx, dword [esp + 0xc]
call fcn.00484370
test eax, eax
je 0x47ddc7
mov edi, dword [ebp + 0x38]
neg esi
sbb esi, esi
and esi, 0x40000009
add esi, 0x80000006
mov dword [edi], esi
jmp 0x47de58
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call fcn.004843e0
mov esi, dword [ebp + 0x20]
mov eax, dword [esp + 0xac]
cmp esi, eax
jae 0x47de14
mov ecx, dword [esp + 0xc]
call fcn.00484130
mov edi, dword [ebp + 0x38]
cmp esi, eax
sbb edx, edx
and edx, 0x3fffffff
add edx, 0x80000005
mov dword [edi], edx
jmp 0x47de44
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0xac]
push eax
push ecx
call fcn.00458f30
mov edx, dword [esp + 0xb8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [eax + 4], edx
call fcn.00484290
mov edi, dword [ebp + 0x38]
mov dword [edi], ebx
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x47de58
push eax
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x110]
cmp eax, ebx
mov esi, dword [0x100b0094]
je 0x47de6c
push eax
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x47de76
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov esi, dword [ebp + 0x14]
je 0x47de94
mov ecx, dword [ebp + 0x18]
push ebx
push ecx
push esi
push eax
call dword [0x100b0098]
push eax
call dword [0x100ccd78]
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xb0]
push ebx
push edx
push esi
push eax
call fcn.0046b4c0
cmp dword [esp + 0x12c], ebx
je 0x47dec2
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00459000
add esp, 4
lea ecx, [esp + 0x198]
call fcn.00498440
mov eax, dword [esp + 0x104]
cmp eax, ebx
je 0x47dee2
push eax
call fcn.00459000
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x47def6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x47df0a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x190]
cmp eax, ebx
je 0x47df24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x190], ebx
mov eax, dword [esp + 0x170]
cmp eax, ebx
je 0x47df3e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x170], ebx
lea ecx, [esp + 0x168]
call fcn.00498440
mov eax, dword [esp + 0x160]
cmp eax, ebx
je 0x47df64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x140]
cmp eax, ebx
je 0x47df7e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x140], ebx
lea ecx, [esp + 0x138]
call fcn.00498440
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x47df9e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x47dfae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34