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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x52d488]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x4c]
mov ecx, dword [esi + 0x58]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push edi
mov edx, ecx
mov edi, 0xc0000001
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], edi
cmp word [eax + 0xe], cx
je 0x421501
mov eax, dword [ebx]
cmp word [eax + 2], cx
jne 0x4214fd
lea ebx, [esi + 0x48]
mov ecx, dword [ebx]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 4]
adc eax, edx
cmp eax, dword [esi + 0x44]
ja 0x42185a
jb 0x42143e
cmp ecx, dword [esi + 0x40]
ja 0x42185a
mov eax, dword [esi + 0x28]
add eax, dword [ebx]
mov ecx, dword [esi + 0x2c]
adc ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], ecx
cmp byte [ebp + 0x18], dl
je 0x4214e3
and dword [esp + 0x1c], edx
test byte [esi + 0x54], 1
je 0x421497
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
lea edx, [esp + 0x68]
call fcn.0040c285
mov eax, dword [esp + 0x78]
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], eax
or eax, 1
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040c2c2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
call fcn.0040c386
test byte [esi + 0x54], 1
mov edi, eax
je 0x4214cc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0040c2c2
mov esi, dword [ebp + 0x10]
test edi, edi
jne 0x421856
add dword [ebx], esi
mov edx, esi
adc dword [ebx + 4], edi
jmp 0x42185a
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push esi
push ecx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xor edi, edi
call fcn.0040c3f1
mov edi, eax
jmp 0x4214cf
mov eax, dword [esp + 0x3c]
movzx ecx, byte [eax + 2]
movzx eax, word [eax]
mov edx, dword [ebp + 0x10]
imul ecx, eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x54], eax
push dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
push dword [esp + 0x4c]
xor edi, edi
add edx, eax
adc edi, ecx
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], edx
call fcn.00421114
mov dword [esp + 0x44], eax
call fcn.0042186e
push dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x40]
call fcn.00421025
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
test edi, edi
je 0x42184f
mov eax, dword [esp + 0x14]
cmp edi, 2
je 0x421849
cmp edi, 3
je 0x421849
cmp edx, dword [ebp + 0x10]
jae 0x421849
mov edi, dword [esp + 0x50]
mov edx, edi
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x40]
ja 0x42165b
jb 0x4215da
cmp edi, dword [esp + 0x4c]
jae 0x42165b
mov eax, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
push 0
add eax, edi
pop ecx
adc ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
ja 0x42165b
jb 0x4215f8
cmp dword [esp + 0x28], eax
jae 0x42165b
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
ja 0x421637
jb 0x42160d
cmp edi, dword [esp + 0x28]
ja 0x421637
mov edx, dword [esp + 0x30]
sub edx, edi
mov edi, dword [esp + 0x2c]
sbb edi, dword [esp + 0x14]
add edx, dword [esp + 0x28]
adc edi, dword [esp + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x40]
cmp edi, ecx
ja 0x421651
jb 0x421647
cmp dword [esp + 0x4c], eax
jae 0x421651
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edi
jmp 0x421655
mov dword [esp + 0x5c], ecx
sub eax, edx
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push ebx
mov dword [esp + 0x6c], eax
call fcn.004211dd
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
push eax
mov eax, edi
call fcn.00421025
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
call fcn.0042186e
mov edx, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x58], edi
cmp edi, 3
je 0x4216ce
mov eax, dword [esp + 0x24]
xor ecx, ecx
add eax, dword [esp + 0x18]
adc ecx, dword [esp + 0x64]
cmp dword [esp + 0x30], eax
jne 0x4216ce
cmp dword [esp + 0x2c], ecx
jne 0x4216ce
mov eax, dword [esp + 0x10]
add eax, edx
cmp dword [ebp + 0x10], eax
ja 0x421824
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421824
cmp byte [ebp + 0x18], 0
je 0x421750
and dword [esp + 0x18], 0
test byte [esi + 0x54], 1
je 0x421717
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x68]
call fcn.0040c285
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
or eax, 1
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040c2c2
mov eax, dword [esp + 0x10]
push dword [ebp + 0xc]
xor edi, edi
push eax
push dword [esp + 0x3c]
mov eax, dword [ebx + 4]
push dword [esp + 0x44]
call fcn.0040c386
test byte [esi + 0x54], 1
mov edi, eax
mov dword [esp + 0x1c], edi
je 0x42176c
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040c2c2
jmp 0x42176c
push dword [ebp + 0xc]
xor edi, edi
push eax
push dword [esp + 0x3c]
mov eax, dword [ebx + 4]
push dword [esp + 0x44]
call fcn.0040c3f1
mov edi, eax
mov dword [esp + 0x1c], eax
test edi, edi
js 0x421845
mov eax, dword [esp + 0x10]
add dword [ebp + 0xc], eax
add dword [esi + 0x48], eax
mov ecx, dword [esp + 0x24]
mov edx, eax
adc dword [esi + 0x4c], 0
add dword [esp + 0x28], eax
push 0
pop edi
adc dword [esp + 0x20], 0
sub edx, dword [esp + 0x48]
sbb edi, dword [esp + 0x54]
add edx, dword [esp + 0x38]
adc edi, dword [esp + 0x34]
dec ecx
xor eax, eax
and ecx, edx
and eax, edi
or ecx, eax
je 0x4217ca
mov eax, dword [esp + 0x24]
xor ecx, ecx
sub eax, 1
sbb ecx, ecx
not eax
not ecx
and eax, edx
and ecx, edi
add dword [esi + 0x30], eax
adc dword [esi + 0x34], ecx
jmp 0x4217e0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x58]
xor ecx, ecx
add eax, 0xffffffff
adc ecx, 0xffffffff
add edx, dword [esp + 0x10]
not eax
and eax, dword [esi + 0x48]
not ecx
and ecx, dword [esi + 0x4c]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
cmp edi, 3
je 0x421849
cmp dword [ebp + 0x10], edx
jbe 0x421849
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
adc eax, 0
mov dword [esp + 0x14], eax
test edi, edi
jne 0x42159f
jmp 0x421849
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
jmp 0x42185a
mov edi, 0xc0000001
jmp 0x42185a
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x421863
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14