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

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x58]
xor ebp, ebp
mov edx, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00418b10
cmp eax, ebp
jne 0x4194c9
mov edx, dword [esi + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
cmp edx, ebp
ja 0x4194d2
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x4c
ret
xor ebp, ebp
mov ecx, dword [esi]
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], eax
cmp ecx, ebp
je 0x4194f6
cmp ecx, 0x21
je 0x4194f6
cmp ecx, 0x30101
jne 0x4196ae
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
cmp edx, 4
jne 0x4195ad
mov eax, dword [esi + 0xc]
mov esi, dword [eax + ebx*8]
mov eax, dword [eax + ebx*8 + 4]
lea edi, [ebx*4]
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + edi + 0x50]
cmp ebx, 2
jae 0x41957f
xor ecx, ecx
mov dword [esp + 0x10], esi
cmp esi, esi
jne 0x419822
cmp ecx, eax
jne 0x419822
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
push esi
push eax
call edx
add esp, 8
test eax, eax
jne 0x419568
test esi, esi
jne 0x419822
mov edx, dword [esp + 0x80]
mov ecx, edi
neg ecx
mov dword [ecx + edx + 4], eax
mov edi, eax
mov dword [esp + ecx + 0x48], esi
jmp 0x4195ad
jne 0x41982f
xor edx, edx
cmp eax, edx
ja 0x419808
jb 0x419599
cmp esi, ecx
ja 0x419808
mov edi, dword [esp + 0x74]
sub edi, esi
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x64]
mov eax, dword [esi + ebp*8 + 4]
mov ebx, dword [esi + ebp*8]
push ebp
mov dword [esp + 0x2c], eax
call fcn.00418c70
add eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
adc edx, dword [esp + 0x74]
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0xc]
push esi
mov dword [esp + 0x3c], eax
call edx
add esp, 0x10
test eax, eax
jne 0x4194c7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebp, ecx
or ebp, edx
jne 0x419632
xor ecx, ecx
cmp ebx, dword [esp + 0x10]
jne 0x419815
mov eax, dword [esp + 0x28]
cmp eax, ecx
jne 0x419815
push edi
push eax
push ebx
call fcn.00418a30
add esp, 0xc
test eax, eax
jne 0x4194c7
mov ebx, dword [esp + 0x14]
jmp 0x4197ea
cmp ecx, 0x30101
jne 0x41966e
test edx, edx
jne 0x41966e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push ebx
push eax
mov edx, edi
mov ebx, esi
call fcn.004188a0
add esp, 0x10
test eax, eax
jne 0x4194c7
mov ebx, dword [esp + 0x14]
jmp 0x4197ea
cmp ecx, 0x21
jne 0x41982f
test edx, edx
jne 0x41982f
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push esi
push edx
push ebx
push eax
mov edx, edi
call fcn.004192d0
add esp, 0x14
test eax, eax
jne 0x4194c7
mov ebx, dword [esp + 0x14]
jmp 0x4197ea
mov eax, dword [eax + 0xc]
cmp ecx, 0x303011b
jne 0x419796
cmp eax, ebp
jne 0x419796
mov esi, dword [esp + 0x64]
mov ebp, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esp + 0x40], ebp
cmp ebx, 3
jne 0x41982f
push 1
call fcn.00418c70
add eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
adc edx, dword [esp + 0x74]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
push 0
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x48], edx
call ecx
add esp, 0x10
test eax, eax
jne 0x4194c7
cmp edi, edi
jne 0x419822
cmp eax, ebp
jne 0x419822
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
push edi
push eax
call edx
mov ebp, dword [esp + 0x88]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x419742
test edi, edi
jne 0x419822
push eax
mov eax, dword [esp + 0x44]
push eax
push edi
call fcn.00418a30
add esp, 0xc
test eax, eax
jne 0x4194c7
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 4]
push edi
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.004148e0
add esp, 0x28
test eax, eax
jne 0x4194c7
jmp 0x4197ea
cmp ebx, 1
jne 0x41982f
cmp ecx, 0x3030103
jne 0x4197ab
cmp eax, ebp
je 0x4197cd
cmp ecx, 0x3030501
jne 0x41982f
cmp eax, ebp
jne 0x41982f
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ebp
push ebp
push ecx
push edx
call fcn.00414bb0
add esp, 0x10
jmp 0x4197ea
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ebp
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x34], ebp
call fcn.00414c30
add esp, 0x14
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 0x10]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, edx
jb 0x4194d0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 5
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 2
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 4
pop ebp
add esp, 0x4c
ret