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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 0
je 0x41d4a4
cmp byte [esi + 0x25], 0
je 0x41d4a4
mov eax, dword [esi + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x78]
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
lea ecx, [esi + 0x3c]
mov eax, dword [esi + 0x38]
cmp eax, dword [ecx]
jne 0x41d294
test edx, edx
jne 0x41d294
push ecx
push dword [esi + 0x2c]
mov dword [ecx], edx
push dword [esi + 0x40]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [edx]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov ebx, dword [esi + 0x74]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x28]
mov edi, dword [esi + 0x78]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x28], edi
cmp ecx, edx
jbe 0x41d2b0
lea ebx, [edx + eax]
xor edx, edx
sub ebx, edi
cmp byte [esi + 0x26], dl
je 0x41d2dc
mov ecx, dword [esi + 0x48]
sub ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x4c]
sbb eax, dword [esi + 0x5c]
cmp edx, eax
jb 0x41d2dc
ja 0x41d2cf
cmp ebx, ecx
jb 0x41d2dc
cmp byte [esi + 0x24], dl
mov eax, 1
mov ebx, ecx
cmovne edx, eax
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x38]
lea ecx, [esi + 0x60]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x40]
add eax, dword [esi + 0x38]
lea edx, [ebx + edi]
push eax
call fcn.004062d0
mov edx, dword [esp + 0x20]
add dword [esi + 0x38], edx
add dword [esi + 0x50], edx
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x78]
adc dword [esi + 0x54], 0
mov dword [esi + 0x34], ecx
mov ecx, edi
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add dword [esi + 0x58], ecx
lea eax, [esi + 0x58]
adc dword [eax + 4], 0
cmp byte [esi + 0x26], 0
je 0x41d34b
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x4c]
jb 0x41d34b
ja 0x41d347
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x48]
jb 0x41d34b
mov al, 1
jmp 0x41d34d
xor al, al
cmp dword [esp + 0x24], 0
mov byte [esp + 0x13], al
jne 0x41d37d
test edx, edx
jne 0x41d360
test ecx, ecx
je 0x41d37d
mov edx, dword [esp + 0x1c]
cmp edx, 1
je 0x41d37d
test al, al
je 0x41d372
cmp edx, 3
jne 0x41d37d
mov byte [esp + 0x12], 0
cmp ecx, ebx
jb 0x41d3e6
jmp 0x41d382
mov byte [esp + 0x12], 1
mov ebx, dword [esi + 0x70]
add ebx, dword [esp + 0x18]
sub edi, dword [esp + 0x18]
je 0x41d3c0
nop
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x2c]
mov ecx, dword [edx]
push eax
mov eax, SysReAllocStringLen
cmp edi, eax
cmovb eax, edi
push eax
push ebx
push edx
call dword [ecx + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x2c]
add ebx, eax
sub edi, eax
test ecx, ecx
jne 0x41d3c2
test eax, eax
je 0x41d435
test edi, edi
jne 0x41d390
xor ecx, ecx
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x74]
jne 0x41d3d1
mov dword [esi + 0x78], 0
mov edx, dword [esi + 0x78]
mov dword [esp + 0x18], edx
test ecx, ecx
jne 0x41d499
cmp byte [esp + 0x12], cl
jne 0x41d43c
mov ebx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x3c]
test ebx, ebx
je 0x41d270
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
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x3c]
test eax, eax
je 0x41d270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x80004005
jmp 0x41d3c2
cmp dword [esp + 0x24], 0
jne 0x41d4a4
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x41d475
cmp byte [esi + 0x24], 0
je 0x41d468
cmp byte [esi + 0x26], 0
je 0x41d468
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x41d4a4
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
jne 0x41d4a4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esp + 0x13], 0
je 0x41d4a4
cmp eax, 3
je 0x41d4a4
cmp byte [esi + 0x24], 0
je 0x41d468
cmp eax, 4
jne 0x41d4a4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc