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

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x114]
xor esi, esi
cmp edi, 2
push 0x548978
sete al
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.004015b0
mov eax, 0x80000001
push 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push 1
lea edx, [esp + 0x70]
xor ebp, ebp
mov eax, 0x7fffffff
push ecx
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.004e6bc0
mov ebx, dword [esp + 0x130]
add esp, 0x18
cmp edi, 2
jne 0x4194fb
lea eax, [esp + 0x10]
lea ecx, [ebx + 0xc]
push eax
push ebx
lea edx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x20], 1
call fcn.004e7760
add esp, 0xc
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004e7840
push eax
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.004e7720
mov edx, dword [eax]
add esp, 0x18
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov eax, dword [0x6b4670]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x4197ce
mov eax, dword [0x6b466c]
mov ecx, dword [eax + edi*4]
cmp word [ecx], 0xd
jne 0x4197ad
lea edx, [esp + 0x1c]
push edi
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004e3940
lea eax, [esp + 0x38]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004e6220
add esp, 0x10
cmp eax, 0x200
jl 0x4197ad
cmp eax, 0x1000
jg 0x4197ad
lea edx, [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov word [esp + 0x20], si
mov word [esp + 0x22], si
mov word [esp + 0x24], si
mov word [esp + 0x54], si
mov word [esp + 0x56], si
mov word [esp + 0x58], si
mov word [esp + 0x48], si
mov word [esp + 0x4a], si
mov word [esp + 0x4c], si
call fcn.004e62d0
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004e62d0
mov ecx, dword [esp + 0x2e]
mov eax, dword [esp + 0x62]
and ecx, 0xfff
and eax, 0xfff
sub eax, ecx
add esp, 0x18
cmp ax, 0x800
jle 0x4195d8
sub eax, 0x1000
jmp 0x4195e3
cmp ax, 0xf800
jge 0x4195e3
add eax, 0x1000
cmp ax, 0x155
jg 0x4197ad
lea ebp, [ebx + 0xc]
lea edx, [esp + 0x1c]
push ebp
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004e62d0
mov eax, dword [esp + 0x4a]
mov ecx, dword [esp + 0x22]
and eax, 0xfff
and ecx, 0xfff
sub eax, ecx
add esp, 0xc
cmp ax, 0x800
jle 0x419625
sub eax, 0x1000
jmp 0x419630
cmp ax, 0xf800
jge 0x419630
add eax, 0x1000
cmp ax, 0x155
jg 0x4197ad
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
and edx, 0xfff
and eax, 0xfff
sub eax, edx
cmp ax, 0x800
jle 0x41965c
sub eax, 0x1000
jmp 0x419667
cmp ax, 0xf800
jge 0x419667
add eax, 0x1000
movsx ecx, ax
mov eax, ecx
mov dword [esp + 0x84], esi
sar eax, 0x1f
mov edx, eax
mov dword [esp + 0x88], esi
xor edx, ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x24]
add eax, 0x800
mov dword [esp + 0x70], ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x8c], esi
push eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov word [esp + 0xe8], si
mov word [esp + 0xea], si
mov word [esp + 0xec], si
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
call fcn.004524c0
lea ecx, [esp + 0x70]
push 1
push ecx
mov dword [0x5fbedc], 1
call fcn.004549a0
mov eax, dword [esp + 0xe0]
add esp, 0xc
cmp eax, esi
je 0x419739
sub edi, 0x400
mov edx, dword [ebp]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x78], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x7c], eax
push edx
mov dword [esp + 0x84], ecx
call fcn.004524c0
lea eax, [esp + 0x70]
push 1
push eax
call fcn.004549a0
mov eax, dword [esp + 0xe0]
add esp, 0xc
cmp eax, esi
mov dword [0x5fbedc], esi
je 0x419781
sub edi, 0x400
cmp edi, dword [esp + 0x2c]
jle 0x4197a9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x56f3b8]
push edx
push eax
mov dword [esp + 0x38], edi
call fcn.004164f0
mov edi, dword [esp + 0x10]
mov eax, dword [0x6b4670]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x419511
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x100
ret