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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x884
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [0x68ca5c], esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov dword [0x68c234], esi
mov dword [0x68c23c], esi
je 0x4181df
mov edi, 0x68ca5c
call fcn.004cce70
cmp dword [0x68c1f0], esi
jle 0x418201
call fcn.00417fb0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x68c17c]
cmp ecx, esi
je 0x41864e
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x68c170]
push esi
lea ebx, [ecx + ecx + 0x14]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], esi
call fcn.0043ace0
add esp, 4
cmp eax, esi
mov dword [esp + 0x78], eax
je 0x4186f2
mov edx, dword [0x68c17c]
xor ecx, ecx
cmp edx, esi
lea ebx, [edx + 0xa]
mov dword [esp + 0x74], edx
jle 0x41828d
xor edx, edx
jmp 0x418270
mov edi, dword [0x68c180]
mov di, word [edx + edi + 4]
mov word [eax + ecx*2], di
add ecx, 1
add edx, 0x10
cmp ecx, dword [0x68c17c]
jl 0x418270
mov eax, dword [0x68c184]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x7c]
push edx
mov edx, 0x68ca5c
xor ecx, ecx
call fcn.0041bad0
add esp, 0x10
cmp eax, 1
jne 0x4182fc
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
jge 0x4182fc
mov eax, dword [esp + 0x78]
mov word [eax + ecx*2], 0xc
mov eax, dword [0x68c184]
add ecx, 1
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ecx
lea edx, [esp + 0x7c]
push edx
mov edx, 0x68ca5c
xor ecx, ecx
call fcn.0041bad0
add esp, 0x10
cmp eax, 1
je 0x4182b8
cmp eax, esi
je 0x4183f7
mov ecx, dword [0x68c17c]
cmp ecx, 1
mov dword [esp + 0x74], ecx
jle 0x4183c7
cmp eax, 3
je 0x41832f
cmp eax, 1
je 0x41832f
cmp eax, 2
je 0x41832f
cmp eax, 4
jne 0x4183c4
mov edx, dword [0x68c184]
sub ecx, 1
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x7c]
push ecx
mov edx, 0x68ca5c
xor ecx, ecx
call fcn.0041bad0
mov ecx, dword [esp + 0x84]
add esp, 0x10
cmp eax, 1
jne 0x4183bb
mov edi, ecx
jmp 0x418374
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
jge 0x4183b5
mov edx, dword [esp + 0x78]
mov word [edx + ecx*2], 0xc
mov edx, dword [0x68c184]
add ecx, 1
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x7c]
push ecx
mov edx, 0x68ca5c
xor ecx, ecx
call fcn.0041bad0
add esp, 0x10
cmp eax, 1
je 0x418370
mov ecx, edi
mov dword [esp + 0x74], ecx
cmp ecx, 1
jg 0x418317
cmp ecx, 1
jne 0x4183ef
cmp eax, 4
jne 0x4183ef
cmp dword [0x68c170], eax
je 0x4185cd
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
jmp 0x4185cd
cmp eax, esi
jne 0x4185cd
mov ecx, dword [0x68c170]
xor ebx, ebx
cmp ecx, 4
je 0x41844d
cmp dword [0x68c178], ebx
lea edx, [esp + 0x688]
mov dword [esp + 0x18], edx
je 0x41841f
mov esi, dword [0x68c174]
jmp 0x418426
lea ebx, [esp + 0x488]
xor edx, edx
lea eax, [esp + 0x488]
cmp ebx, eax
setne dl
sub edx, 1
and edx, eax
mov edi, edx
lea eax, [esp + 0x688]
call fcn.0041ac00
mov edi, dword [esp + 0x18]
jmp 0x41844f
xor edi, edi
mov ecx, dword [0x68ca5c]
push 0
push 0x43bd20
push 0
push ebx
push esi
lea eax, [esp + 0x38]
call fcn.0043ddc0
add esp, 0x14
cmp dword [0x68c170], 4
mov esi, eax
mov dword [esp + 0xc], esi
jne 0x4185a9
xor ebx, ebx
cmp dword [0x68c238], ebx
jne 0x4185a9
lea eax, [esp + 0x70]
call fcn.004180f0
test eax, eax
je 0x4184b1
mov edx, dword [0x68c174]
xor ecx, ecx
cmp word [edx], bx
setne cl
mov dword [esp + 0x14], ecx
jmp 0x4185a9
mov ecx, dword [0x68ca5c]
mov edx, dword [0x691ca8]
lea eax, [esp + 0x58]
push eax
lea eax, [edx + ecx + 4]
push ebx
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x50], 0x418050
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 8
mov word [esp + 0x60], bx
call fcn.0041b3b0
mov edx, dword [0x68ca5c]
push ebx
mov edi, eax
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041c390
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
add esp, 0x1c
mov dword [esp + 0x64], edx
xor edx, edx
cmp edi, ebx
setne dl
mov dword [esp + 0x60], ecx
push 0x100
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x70], eax
add edx, 0x1e
push edx
push 0xe
call fcn.0051a1e0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x58]
call fcn.00472920
add esp, 0x18
cmp eax, 1
jg 0x41858b
push ebx
push ebx
push ebx
call fcn.00467260
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x41857e
call fcn.00468650
mov esi, dword [esp + 0x18]
mov eax, edi
call fcn.00468650
mov dword [esp + 0xc], edi
jmp 0x41858b
mov edx, dword [esp + 0x18]
push edx
call fcn.00467450
add esp, 4
call fcn.00416f90
mov esi, 0x68c240
mov dword [0x68c23c], eax
call fcn.0053b240
mov edi, 0x1f4
call fcn.0053b1d0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4185ba
push eax
call fcn.005ce619
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4185cb
push eax
call fcn.005ce619
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x78]
push eax
call fcn.005ce619
mov eax, dword [0x68c238]
add esp, 4
cmp eax, 4
je 0x4185ee
cmp eax, 3
je 0x4185ee
cmp eax, 2
jne 0x4185f6
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x20], esi
jne 0x418606
cmp dword [esp + 0x14], esi
je 0x4186f2
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp ebx, esi
mov dword [esp + 0x10], edi
jne 0x41861a
cmp dword [esp + 0xc], esi
jne 0x41863f
push esi
push esi
push esi
call fcn.00467260
add esp, 0xc
cmp ebx, esi
je 0x418633
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov edi, ecx
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x4186c4
cmp dword [esp + 0x14], 0
je 0x41865d
mov edi, dword [0x68c174]
jmp 0x4186a2
cmp dword [0x68c170], 4
je 0x4186f2
jmp 0x41860a
cmp dword [0x68c178], 0
lea edi, [esp + 0x288]
push 0x100
je 0x418686
mov eax, dword [0x68c170]
mov esi, dword [0x68c174]
mov edx, edi
push edx
add eax, 0x20
push eax
jmp 0x418698
mov edx, dword [0x68c170]
lea ecx, [esp + 0x28c]
push ecx
add edx, 0x24
push edx
push 0xe
call fcn.0051a1e0
add esp, 0x10
mov eax, dword [esp + 0xc]
mov ecx, dword [0x690c9c]
mov ebx, dword [ecx + 0x18]
push eax
push 1
mov ecx, edi
mov eax, esi
call fcn.0043dcd0
mov edi, dword [esp + 0x18]
add esp, 8
xor esi, esi
cmp edi, esi
je 0x4186f2
mov ecx, dword [esp + 0xc]
cmp ecx, esi
je 0x4186ee
mov dword [edi + 0x18], ecx
mov eax, dword [ecx + 4]
cmp eax, esi
jne 0x4186e0
mov dword [ecx + 4], edi
jmp 0x4186f2
mov ecx, eax
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4186e0
mov dword [ecx + 8], edi
jmp 0x4186f2
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0xc]
call fcn.0043e900
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x418806
cmp dword [esp + 0x1c], esi
je 0x418806
push esi
push esi
push esi
call fcn.00467260
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x418806
push esi
push esi
push 9
call fcn.00467260
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4187fd
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov word [esp + 0x84], ax
mov eax, 1
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
lea eax, [esp + 0x70]
mov word [esp + 0x7e], 0xc8
mov word [esp + 0x74], 2
call fcn.004735b0
push esi
push edi
push 7
call fcn.00467260
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4187f4
push 0x100
lea edx, [esp + 0x8c]
push edx
push 0x1d
push 0xe
call fcn.0051a1e0
push esi
lea edx, [esp + 0x9c]
call fcn.00475710
add esp, 0x14
test eax, eax
je 0x4187f4
mov esi, dword [esp + 0xc]
mov eax, ebx
call fcn.00468650
mov esi, edi
mov eax, ebx
call fcn.00468650
mov dword [esp + 0xc], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret
push edi
call fcn.00467450
add esp, 4
push ebx
call fcn.00467450
add esp, 4
mov ecx, dword [esp + 0x88c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret