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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
mov dword [ebp - 8], ecx
movsx eax, word [ebx + 0x4c]
mov dx, word [ebx + eax*2 + 0x4e]
movsx ecx, word [ebx + 0x4c]
mov eax, dword [ebx + ecx*4 + 0x78]
cmp dx, word [eax + 0x12]
jae 0x419224
cmp byte [ebx + 0x49], 1
je 0x41922e
mov eax, 1
jmp 0x419439
movsx edi, word [ebx + 0x4c]
movzx eax, word [ebx + edi*2 + 0x4e]
mov dword [ebp - 0x14], eax
mov esi, dword [ebx + edi*4 + 0x78]
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + edx*2]
shl ecx, 8
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx*2 + 1]
or ecx, eax
movzx edx, word [esi + 0x14]
and ecx, edx
add ecx, dword [esi + 0x38]
mov dword [ebp - 0x10], ecx
cmp byte [esi + 5], 0
jne 0x41928e
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004167ca
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41928e
mov eax, dword [ebp - 0xc]
jmp 0x419439
push ebx
push dword [ebx + 0x3c]
push dword [ebp - 8]
call fcn.00412d9f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4192ae
mov eax, dword [ebp - 0xc]
jmp 0x419439
cmp dword [ebx + 0x10], 0
jne 0x4192c7
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 4]
call fcn.00412c1b
add esp, 0x10
push dword [esi + 0x44]
call fcn.0040fcb7
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4192e1
mov eax, dword [ebp - 0xc]
jmp 0x419439
lea edx, [ebp - 0x16]
push edx
push dword [ebp - 0x10]
push esi
call fcn.0041712c
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
movzx eax, word [ebp - 0x16]
push eax
push dword [ebp - 0x14]
push esi
call fcn.0041751d
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x419317
mov eax, dword [ebp - 0xc]
jmp 0x419439
cmp byte [esi + 5], 0
jne 0x4193e7
movsx edx, word [ebx + 0x4c]
mov ecx, dword [ebx + edx*4 + 0x78]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebx + edi*4 + 0x7c]
mov edx, dword [eax + 0x48]
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 0x12]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x40]
movzx eax, byte [ecx + eax*2 - 2]
shl eax, 8
mov edx, dword [ebp - 0x20]
movzx ecx, word [edx + 0x12]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x40]
movzx ecx, byte [edx + ecx*2 - 1]
or eax, ecx
mov edx, dword [ebp - 0x20]
movzx ecx, word [edx + 0x14]
and eax, ecx
mov edx, dword [ebp - 0x20]
add eax, dword [edx + 0x38]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call fcn.00413339
add esp, 8
movzx eax, ax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x50]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x20]
push dword [edx + 0x44]
call fcn.0040fcb7
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
mov edx, dword [ebp - 0x10]
add edx, 0xfffffffc
push edx
push dword [ebp - 0x14]
push esi
call fcn.0041763f
add esp, 0x1c
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
movzx edx, word [eax + 0x12]
dec edx
push edx
push dword [ebp - 0x20]
call fcn.0041751d
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4193e7
mov eax, dword [ebp - 0xc]
jmp 0x419439
push ebx
call fcn.00418e82
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x419429
movsx edx, word [ebx + 0x4c]
cmp edi, edx
jge 0x419429
jmp 0x419417
mov cx, word [ebx + 0x4c]
add word [ebx + 0x4c], 0xffff
movsx eax, cx
push dword [ebx + eax*4 + 0x78]
call fcn.00413f5a
pop ecx
movsx edx, word [ebx + 0x4c]
cmp edi, edx
jl 0x419401
push ebx
call fcn.00418e82
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x419436
push ebx
call fcn.00415ece
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret