Function at 0x4a7380
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.00484f10
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.00484f10
add esp, 0x10
lea ecx, [esp + 0x138]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x64], ebx
call fcn.004c07b0
lea ecx, [esp + 0x168]
call fcn.004c07b0
lea edx, [esp + 0xc]
push 4
push edx
call fcn.00484f10
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.004939c0
test eax, eax
je 0x4a7488
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 2
je 0x4a742d
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x4a9ef6
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push eax
call fcn.004b1da0
add esp, 4
test eax, eax
jne 0x4a7658
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 0x4a746b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x168]
call fcn.00490b40
lea ecx, [esp + 0x138]
call fcn.00490b40
jmp 0x4a9f8a
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.004c4110
mov ecx, eax
call fcn.004f47c0
push eax
push esi
mov ecx, edi
call fcn.0049a9b0
test eax, eax
jne 0x4a74c9
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
jmp 0x4a9ef6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x16c]
call fcn.004c4020
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 0x4a74f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, 1
jne 0x4a751c
mov eax, dword [ebp + 0x34]
mov dword [eax], esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4a746b
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
jmp 0x4a7467
cmp esi, 2
je 0x4a7658
cmp esi, 3
je 0x4a7658
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.004c4110
mov ecx, eax
call fcn.004f47c0
push eax
push esi
mov ecx, edi
call fcn.0049a9b0
test eax, eax
je 0x4a75d5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x13c]
call fcn.004c4020
push eax
lea ecx, [esp + 0x30]
call fcn.0048ff90
lea ecx, [esp + 0x1c]
call fcn.004ba940
lea ecx, [esp + 0x138]
call fcn.004f26e0
mov ecx, eax
call fcn.004b16d0
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 0x4a75c3
mov ecx, dword [ebp + 0x34]
mov dword [ecx], eax
jmp 0x4a75de
cmp eax, 2
je 0x4a7625
cmp eax, 3
je 0x4a7625
cmp eax, ebx
jne 0x4a761a
cmp esi, ebx
jne 0x4a7629
mov edx, dword [ebp + 0x34]
mov dword [edx], 1
lea ecx, [esp + 0xc]
call fcn.004c5300
lea ecx, [esp + 0x168]
call fcn.00490b40
lea ecx, [esp + 0x138]
call fcn.00490b40
lea ecx, [esp + 0x2c]
call fcn.004ba940
lea ecx, [esp + 0x48]
call fcn.004ba940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp + 0x34]
mov dword [eax], 1
jmp 0x4a75de
cmp esi, ebx
je 0x4a7658
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
cmp eax, 2
je 0x4a7658
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4a761a
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x4a75de
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.00484f10
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, ebx
je 0x4a76af
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x58]
push ecx
push 0x100bc638
push eax
call edx
test eax, eax
je 0x4a76af
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 0x4a7503
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x58], ebx
jmp 0x4a7503
push 0x200
push ebx
mov dword [esp + 0x114], 0xff
call fcn.00484fa0
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 0x4a7718
cmp dword [ecx + 4], ebx
je 0x4a7718
push ecx
lea eax, [esp + 0x118]
push eax
call fcn.0046b740
mov eax, dword [eax]
add esp, 8
push eax
lea ecx, [esp + 0x108]
call fcn.0046a5a0
lea ecx, [esp + 0x114]
call fcn.0046a810
mov eax, dword [esp + 0x104]
cmp dword [0x100ccb64], ebx
je 0x4a776a
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.0046a5a0
push 0x100bcdc8
lea ecx, [esp + 0x128]
call fcn.00480470
mov ecx, eax
call fcn.0047f3c0
mov ecx, eax
call fcn.0046b710
mov ecx, eax
call fcn.0047f3c0
lea ecx, [esp + 0x114]
call fcn.0047f280
lea ecx, [esp + 0x198]
call fcn.004c4320
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x198]
push ecx
push esi
mov ecx, edi
call fcn.00497360
lea ecx, [esp + 0x198]
call fcn.004f47c0
push eax
lea edx, [esp + 0x130]
push edx
call fcn.0046b740
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.00494a30
mov eax, dword [esp + 0x110]
cmp eax, ebx
mov esi, dword [0x100b01cc]
je 0x4a77dd
push eax
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4a77e7
push eax
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [ebp + 8]
add edi, 0x108
push eax
mov ecx, edi
call fcn.004943d0
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [esp + 0x1c4], esi
je 0x4a90a0
lea ecx, [esp + 0x1c]
push ecx
call fcn.004affa0
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.0048feb0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a7838
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.004c8210
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.0046a5a0
mov ecx, dword [esp + 0x18]
call fcn.004b0030
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 0x4a78b7
cmp eax, 3
jne 0x4a8178
lea ecx, [esp + 0xf4]
call fcn.004c4320
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x16c]
call fcn.004c4020
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.004c4450
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0xf0]
push edx
lea ecx, [esp + 0x170]
call fcn.004f26e0
mov ecx, eax
call fcn.004b1500
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.004b1db0
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004c4440
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a793e
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.004c40e0
mov ecx, eax
call fcn.004f47c0
push eax
push ebx
push 0x40
lea ecx, [esp + 0x108]
call fcn.004f47c0
push eax
push ebx
lea ecx, [esp + 0x1c8]
call fcn.004c4110
mov ecx, eax
call fcn.004f47c0
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 0x4a80f9
mov dword [esp + 0x10], 0x100
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a7a2f
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00485050
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.004c40e0
mov ecx, eax
call fcn.004f47c0
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 0x4a7dba
cmp eax, 0x80000005
je 0x4a7dba
cmp eax, 0xc0000023
je 0x4a7dba
cmp eax, ebx
jne 0x4a7dc7
cmp dword [esp + 0x20], ebx
je 0x4a7ad0
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00484f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x4a7c8e
movzx edx, byte [eax + 0x10042fcc]
jmp dword [edx*4 + 0x10042fb8]
push 0x100bc614
push esi
call fcn.0048ce60
add esp, 8
test eax, eax
je 0x4a7d2d
xor ecx, ecx
mov eax, 0x100bc614
jmp 0x4a7cb0
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x4a7cb0
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.0046a5a0
lea eax, [esp + 0x4c]
mov ecx, eax
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00491640
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4a7d10
push eax
call fcn.00485000
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 0x4a7a16
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebx
jmp 0x4a7a16
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004b01a0
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0046a5a0
lea edx, [esp + 0x8c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xa4]
call fcn.00491640
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4a7d9d
push eax
call fcn.00485000
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 0x4a7a16
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
jmp 0x4a7a16
add dword [esp + 0x10], 0x100
jmp 0x4a7a16
cmp dword [esp + 0x38], ebx
je 0x4a80f9
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a7dfa
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x40]
push eax
call fcn.00485050
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.004c40e0
mov ecx, eax
call fcn.004f47c0
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 0x4a80ec
cmp eax, 0x80000005
je 0x4a80ec
cmp eax, 0xc0000023
je 0x4a80ec
cmp eax, ebx
jne 0x4a80f9
cmp dword [esp + 0x20], ebx
je 0x4a7e9b
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00484f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x4a802d
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.0046a5a0
push 0x200
push ebx
mov dword [esp + 0x5c], 0xff
call fcn.00484fa0
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.004913d0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4a809e
push eax
call fcn.00485000
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 0x4a80bb
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
cmp dword [esp + 0x30], ebx
jne 0x4a80cf
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x5c]
push eax
call fcn.004b01a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4a7de1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x4a7de1
add dword [esp + 0x40], 0x100
jmp 0x4a7de1
lea ecx, [esp + 0x3c]
call fcn.0048c970
lea ecx, [esp + 0x9c]
call fcn.00491770
lea ecx, [esp + 0x9c]
call fcn.00491770
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x4a813d
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x34], ecx
call fcn.00468000
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, ebx
jne 0x4a8125
cmp esi, ebx
je 0x4a814a
push esi
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a8163
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x38]
call fcn.0048c970
lea ecx, [esp + 0xf4]
call fcn.004c4440
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4a8f09
cmp dword [esp + 0x98], ebx
je 0x4a829f
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.00484f10
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 0x4a8284
lea esp, [esp]
cmp dword [esp + 0x98], ebx
je 0x4a81f7
lea ecx, [esp + 0xb4]
call fcn.00491710
jmp 0x4a824c
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.004f47c0
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.0046b740
add esp, 8
push eax
lea ecx, [esp + 0xbc]
call fcn.004914b0
lea ecx, [esp + 0x114]
call fcn.0046a810
lea ecx, [esp + 0xf4]
call fcn.004c4440
lea ecx, [esp + 0x20]
call fcn.004ba940
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00484f10
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 0x4a81e0
lea ecx, [esp + 0x20]
call fcn.004ba940
lea ecx, [esp + 0x3c]
call fcn.004ba940
lea ecx, [esp + 0x38]
call fcn.004ba940
mov eax, dword [esp + 0x64]
cmp eax, 2
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
je 0x4a82bf
cmp eax, 3
jne 0x4a8962
lea ecx, [esp + 0xf4]
call fcn.004c4320
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.004c4450
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x140]
call fcn.004f26e0
mov ecx, eax
call fcn.004b1500
push eax
lea edx, [esp + 0xe0]
push edx
call fcn.004b1db0
add esp, 0xc
lea ecx, [esp + 0x5c]
call fcn.004c4440
mov esi, dword [0x100cca70]
push 0x4021
push 7
lea ecx, [esp + 0xf4]
mov dword [esp + 0x48], ebx
add esi, 0x15c
call fcn.004c40e0
mov ecx, eax
call fcn.004f47c0
push eax
push ebx
push 0x40
lea ecx, [esp + 0x108]
call fcn.004f47c0
push eax
push ebx
lea ecx, [esp + 0x1c8]
call fcn.004c4110
mov ecx, eax
call fcn.004f47c0
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 0x4a894d
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4a83bd
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x38]
push esi
call fcn.00485050
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.004c40e0
mov ecx, eax
call fcn.004f47c0
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 0x4a8940
cmp eax, 0x80000005
je 0x4a8940
cmp eax, 0xc0000023
je 0x4a8940
cmp eax, ebx
jne 0x4a894d
cmp dword [esp + 0x3c], ebx
je 0x4a8456
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00484f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x4a8831
movzx edx, byte [eax + 0x1004303c]
jmp dword [edx*4 + 0x10043028]
push 0x100bc614
push edi
call fcn.0048ce60
add esp, 8
test eax, eax
je 0x4a88b3
xor ecx, ecx
mov eax, 0x100bc614
lea ebx, [ebx]
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x4a8850
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.0046a5a0
lea ecx, [esp + 0x4c]
push ecx
mov edx, ecx
push edx
lea ecx, [esp + 0x128]
call fcn.00491640
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4a8923
push eax
call fcn.00485000
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
jmp 0x4a8920
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
call fcn.004b01a0
push edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.0046a5a0
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
lea ecx, [esp + 0x128]
call fcn.00491640
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4a8923
push eax
call fcn.00485000
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 0x4a83a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x4a83a4
add dword [esp + 0x38], 0x100
jmp 0x4a83a4
lea ecx, [esp + 0x40]
call fcn.0048c970
lea ecx, [esp + 0xf4]
call fcn.004c4440
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 0x4a8ed4
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
lea esp, [esp]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4a89c9
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x38]
push esi
call fcn.00485050
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.004c40e0
mov ecx, eax
call fcn.004f47c0
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 0x4a8ea9
cmp eax, 0x80000005
je 0x4a8ea9
cmp eax, 0xc0000023
je 0x4a8ea9
cmp eax, ebx
jne 0x4a8eb6
cmp dword [esp + 0x3c], ebx
je 0x4a8a62
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00484f10
mov eax, dword [ebp + 0x24]
add eax, 0xfffffffe
add esp, 8
cmp eax, 0x23
ja 0x4a8dbe
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.0046a5a0
push 0x200
push ebx
mov dword [esp + 0xf0], 0xff
call fcn.00484fa0
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.004913d0
mov esi, eax
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x4a8e51
push eax
call fcn.00485000
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 0x4a8e7a
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
cmp esi, ebx
jne 0x4a8e8c
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004b01a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a89b0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebx
jmp 0x4a89b0
add dword [esp + 0x38], 0x100
jmp 0x4a89b0
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.00491770
lea ecx, [esp + 0x120]
call fcn.00491770
mov eax, dword [esp + 0x120]
cmp eax, ebx
je 0x4a8f09
mov esi, dword [eax + 4]
push eax
call fcn.00468000
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x4a8ef7
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.004c4320
push 0x200
mov esi, 0xff
push ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
call fcn.00484fa0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov word [eax], bx
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.00484f10
push 0x200
push ebx
mov dword [esp + 0x1c0], esi
call fcn.00484fa0
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 0x4a8fe6
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ecx, dword [esp + 0x58]
jne 0x4a8f94
cmp ecx, ebx
je 0x4a8fe6
mov edx, dword [ebp + 0x24]
lea esi, [edx - 2]
cmp esi, 0x23
ja 0x4a9c2f
movzx esi, byte [esi + 0x100430ac]
jmp dword [esi*4 + 0x10043098]
mov ecx, dword [esp + 0xc]
call fcn.004b0220
mov eax, dword [esp + 0x1a0]
cmp eax, ebx
je 0x4a9003
push eax
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4a9017
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 0x4a9034
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x1d4]
call fcn.004c4440
lea ecx, [esp + 0x4c]
call fcn.00491770
lea ecx, [esp + 0x4c]
call fcn.00491770
lea ecx, [esp + 0x4c]
call fcn.004c5270
cmp edi, ebx
je 0x4a9068
push edi
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4a9081
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0xb4]
call fcn.00491710
lea ecx, [esp + 0xb4]
call fcn.004c5270
mov esi, dword [esp + 0x1c4]
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0xc]
mov dword [eax], ebx
call fcn.004b0300
test eax, eax
je 0x4a9d92
mov edi, dword [ebp + 0x38]
mov dword [edi], 0xc000000f
jmp 0x4a9e58
cmp eax, ebx
je 0x4a9c3e
mov eax, dword [ebp + 0x34]
mov dword [eax], 1
jmp 0x4a9c7d
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 0x4a9c6a
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.004974c0
mov eax, dword [esp + 0x1a0]
push eax
call fcn.00485000
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
je 0x4a9ca1
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 0x4a9cbe
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x1d4]
call fcn.004c4440
lea ecx, [esp + 0x4c]
call fcn.00491770
lea ecx, [esp + 0x4c]
call fcn.00491770
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4a9cf6
mov esi, dword [eax + 4]
push eax
call fcn.00468000
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x4a9ce4
cmp edi, ebx
je 0x4a9d03
push edi
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4a9d1c
push eax
call fcn.00485000
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0xb4]
call fcn.00491710
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x4a9d45
mov edi, dword [eax + 4]
push eax
call fcn.00468000
add esp, 4
cmp edi, ebx
mov eax, edi
jne 0x4a9d33
mov eax, dword [esp + 0x12c]
cmp eax, ebx
je 0x4a9d59
push eax
call fcn.00485000
add esp, 4
lea ecx, [esp + 0x198]
call fcn.004c4440
mov eax, dword [esp + 0x104]
cmp eax, ebx
je 0x4a9d79
push eax
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4a9ef6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4a9ef2
cmp byte [ebp + 0x30], bl
je 0x4a9da0
mov ecx, dword [esp + 0xc]
call fcn.004b0220
mov ecx, dword [esp + 0xc]
call fcn.004b0370
test eax, eax
je 0x4a9dc7
mov edi, dword [ebp + 0x38]
neg esi
sbb esi, esi
and esi, 0x40000009
add esi, 0x80000006
mov dword [edi], esi
jmp 0x4a9e58
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call fcn.004b03e0
mov esi, dword [ebp + 0x20]
mov eax, dword [esp + 0xac]
cmp esi, eax
jae 0x4a9e14
mov ecx, dword [esp + 0xc]
call fcn.004b0130
mov edi, dword [ebp + 0x38]
cmp esi, eax
sbb edx, edx
and edx, 0x3fffffff
add edx, 0x80000005
mov dword [edi], edx
jmp 0x4a9e44
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0xac]
push eax
push ecx
call fcn.00484f30
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.004b0290
mov edi, dword [ebp + 0x38]
mov dword [edi], ebx
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x4a9e58
push eax
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x110]
cmp eax, ebx
mov esi, dword [0x100b0094]
je 0x4a9e6c
push eax
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4a9e76
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov esi, dword [ebp + 0x14]
je 0x4a9e94
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.004974c0
cmp dword [esp + 0x12c], ebx
je 0x4a9ec2
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00485000
add esp, 4
lea ecx, [esp + 0x198]
call fcn.004c4440
mov eax, dword [esp + 0x104]
cmp eax, ebx
je 0x4a9ee2
push eax
call fcn.00485000
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x4a9ef6
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 0x4a9f0a
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 0x4a9f24
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 0x4a9f3e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x170], ebx
lea ecx, [esp + 0x168]
call fcn.004c4440
mov eax, dword [esp + 0x160]
cmp eax, ebx
je 0x4a9f64
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 0x4a9f7e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x140], ebx
lea ecx, [esp + 0x138]
call fcn.004c4440
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4a9f9e
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 0x4a9fae
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