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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push esi
push edi
mov dword [ebp - 0x260], ecx
push 0x4f79c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x4f7cec], 0x1b2
push 0x4caa5c
mov ecx, 0x4f79c0
call fcn.00403300
push 0x4cb558
push 0x4f79c0
call fcn.00403650
add esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x41691e
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x20
jge 0x416a8d
push 0x4cb550
mov ecx, dword [ebp - 0x260]
add ecx, 0x3c
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, 0x4f912c
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0044e670
mov dword [ebp - 0x30], 0
jmp 0x4169b4
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x10
jge 0x416a4a
call fcn.004b5d44
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
call dword [edx + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
push eax
push 0x4cb544
lea ecx, [ebp - 0x34]
push ecx
call fcn.004193e0
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, 0x4f912c
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0044e670
jmp 0x4169ab
mov eax, 0x4cae00
test eax, eax
jne 0x416a5f
mov dword [ebp - 0xa4], 0
jmp 0x416a72
push 0x4cae00
call fcn.0049873d
add esp, 4
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
push 0x4cae00
mov ecx, 0x4f912c
call fcn.00401ba0
jmp 0x416915
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.00402300
mov dword [ebp - 0x38], 0
jmp 0x416aad
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x14
jge 0x416aeb
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
movzx dx, byte [ecx + eax*2 + 0x37]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.004198d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
movzx dx, byte [ecx + eax*2 + 0x36]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.004198d0
jmp 0x416aa4
push 2
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.00419330
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], 2
push 0x4cb540
mov edx, dword [ebp - 0x26c]
push edx
call fcn.00410590
add esp, 8
mov byte [ebp - 0x45], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0044e670
movzx eax, byte [ebp - 0x45]
test eax, eax
je 0x416baf
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
push ecx
push 0x4cb534
lea edx, [ebp - 0x50]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0xec], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.00402240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044e670
jmp 0x416c6e
push 2
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.00419330
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
mov dword [ebp - 4], 4
push 0x4cb530
mov edx, dword [ebp - 0x278]
push edx
call fcn.00410590
add esp, 8
mov byte [ebp - 0x51], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0044e670
movzx eax, byte [ebp - 0x51]
test eax, eax
je 0x416c6e
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
push ecx
push 0x4cb51c
lea edx, [ebp - 0x5c]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00402240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0044e670
push 0x4cb508
mov eax, dword [ebp - 0x260]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x260]
add ecx, 0x24
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
mov eax, dword [ebp - 0x284]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00419410
add esp, 0xc
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 7
push 0x4cae00
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.0044e670
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.0044e670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0044e670
call fcn.004b5d44
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x138]
call dword [edx + 0xc]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.00402300
mov dword [ebp - 0x3c], 0
jmp 0x416dbc
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0xa
jge 0x416e0a
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx*2 + 0x15]
mov byte [ebp - 0x3d], cl
movsx edx, byte [ebp - 0x3d]
test edx, edx
je 0x416de5
movsx ax, byte [ebp - 0x3d]
push eax
lea ecx, [ebp - 0x10]
call fcn.004198d0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov al, byte [edx + ecx*2 + 0x14]
mov byte [ebp - 0x3d], al
movsx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x416e08
movsx dx, byte [ebp - 0x3d]
push edx
lea ecx, [ebp - 0x10]
call fcn.004198d0
jmp 0x416db3
push 0x4cb4f4
mov eax, dword [ebp - 0x260]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x294], eax
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x298], edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00419410
add esp, 0xc
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 0xb
push 0x4cae00
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x74]
call fcn.0044e670
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.0044e670
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x6c]
call fcn.0044e670
mov ecx, dword [ebp - 0x260]
movzx edx, byte [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x260]
movzx ecx, byte [eax + 0x1d]
push ecx
push 0x4cb4e8
mov edx, dword [ebp - 0x260]
add edx, 0x28
push edx
call fcn.004193e0
add esp, 0x10
mov eax, dword [ebp - 0x260]
add eax, 0x28
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1b0]
call fcn.00401ba0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004b5d44
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b8]
call dword [edx + 0xc]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xa6]
push edx
push 0x4cb4bc
lea eax, [ebp - 0x28]
push eax
call fcn.004193e0
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x260]
add edx, 0x3c
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00419410
add esp, 0xc
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x1d8], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov ecx, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x78]
call fcn.0044e670
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa6]
and ecx, 0x400
je 0x41713c
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xce]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xcc]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
add esi, eax
adc edi, edx
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xca]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.00499e10
add esi, eax
adc edi, edx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc8]
cdq
add esi, eax
adc edi, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xce]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xcc]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xca]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc8]
push ecx
push 0x4cb490
lea edx, [ebp - 0x28]
push edx
call fcn.004193e0
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1e0], ecx
mov edx, dword [ebp - 0x1e0]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 0x4f912c
call fcn.00401ba0
jmp 0x417198
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0x7a]
shl eax, 0x10
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 0x78]
add eax, ecx
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x7a]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x78]
push edx
push 0x4cb478
lea eax, [ebp - 0x28]
push eax
call fcn.004193e0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1f8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, 0x4f912c
call fcn.00401ba0
mov edx, dword [ebp + 8]
mov ax, word [edx + 0xa]
mov word [ebp - 0x18], ax
mov word [ebp - 0x18], 0x200
push 0
push 0x3e8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00499d60
mov ecx, eax
mov esi, edx
movzx eax, word [ebp - 0x18]
cdq
push edx
push eax
push esi
push ecx
call fcn.00499e10
mov edx, dword [ebp - 0x260]
mov dword [edx + 0x34], eax
push 0x4cb468
mov eax, dword [ebp - 0x260]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x22c], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x7c]
call fcn.0044e670
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 0x34]
push edx
movzx eax, word [ebp - 0x18]
push eax
push 0x4cb450
lea ecx, [ebp - 0x28]
push ecx
call fcn.004193e0
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x4f912c
call fcn.00401ba0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xa6]
and ecx, 0x200
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x260]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xac]
and ecx, 0x200
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x260]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xbc]
and ecx, 0xff
mov edx, dword [ebp - 0x260]
mov byte [edx + 0x14], cl
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xbc]
and ecx, 0xff00
sar ecx, 8
mov edx, dword [ebp - 0x260]
mov byte [edx + 0x15], cl
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0044e670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044e670
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4