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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, 1
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 0
je 0x41be7a
cmp byte [esi + 0x25], 0
je 0x41be7a
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x3c]
mov ebx, dword [esi + 0x78]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
jmp 0x41bc8b
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
cmp ecx, eax
jne 0x41bcce
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test edx, edx
jne 0x41bcce
mov ecx, dword [ebp + 8]
push edi
push dword [esi + 0x2c]
mov dword [edi], edx
push dword [esi + 0x40]
mov dword [esi + 0x38], edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
sub ecx, ebx
add ebx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x28]
mov dword [esp + 0x24], eax
cmovbe ebx, dword [esi + 0x74]
xor edx, edx
sub ebx, eax
cmp byte [esi + 0x26], dl
je 0x41bd12
mov ecx, dword [esi + 0x48]
sub ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x5c]
xor edi, edi
cmp edi, eax
jb 0x41bd12
ja 0x41bd05
cmp ebx, ecx
jb 0x41bd12
cmp byte [esi + 0x24], dl
mov eax, 1
mov ebx, ecx
cmovne edx, eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x40]
add eax, ecx
lea ecx, [esi + 0x60]
push eax
lea edx, [ebx + edx]
call fcn.00406520
mov ecx, dword [esi + 0x78]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
add dword [esi + 0x38], eax
add dword [esi + 0x50], eax
mov eax, 0
mov dword [esi + 0x34], edi
adc dword [esi + 0x54], 0
sub ecx, dword [esp + 0x24]
mov edx, ecx
add edx, dword [esi + 0x58]
mov dword [esi + 0x58], edx
adc eax, dword [esi + 0x5c]
cmp byte [esi + 0x26], 0
mov dword [esi + 0x5c], eax
je 0x41bd89
cmp eax, dword [esi + 0x4c]
jb 0x41bd89
ja 0x41bd85
cmp edx, dword [esi + 0x48]
jb 0x41bd89
mov al, 1
jmp 0x41bd8b
xor al, al
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x12], al
jne 0x41bdbe
cmp dword [esp + 0x20], 0
jne 0x41bda1
test ecx, ecx
je 0x41bdbe
cmp edi, 1
je 0x41bdbe
test al, al
je 0x41bdaf
cmp edi, 3
jne 0x41bdbe
mov byte [esp + 0x13], 0
cmp ecx, ebx
jb 0x41bdfe
mov bl, byte [esp + 0x13]
jmp 0x41bdc0
mov bl, 1
mov ecx, dword [esi + 0x78]
sub ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x70]
add edx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00419320
mov ecx, eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x74]
jne 0x41bdf2
xor eax, eax
mov dword [esi + 0x78], 0
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x41bea7
test bl, bl
jne 0x41be4d
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x3c]
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41bc87
mov ecx, dword [esi + 0x50]
sub ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x54]
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
lea ecx, [esi + 0x58]
push ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xc]
mov edx, dword [esp + 0x18]
lea edi, [esi + 0x3c]
test eax, eax
je 0x41bc8b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x1c], 0
jne 0x41be75
cmp edi, 1
jne 0x41be83
cmp byte [esi + 0x24], 0
je 0x41be9a
cmp byte [esi + 0x26], 0
je 0x41be9a
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x41be75
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
je 0x41be9a
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x12], 0
je 0x41be75
cmp edi, 3
je 0x41be75
cmp byte [esi + 0x24], 0
je 0x41be9a
cmp edi, 4
jne 0x41be75
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc