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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dd974
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
push 1
push esi
lea ecx, [esp + 0x34]
call fcn.0040b669
and dword [esp + 0xb8], 0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
lea eax, [esp + eax + 0x38]
lea ecx, [edi + 0x3c]
push eax
call fcn.0040b74b
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x44]
mov ebx, dword [esp + eax + 0x4c]
mov dword [esp + 0x1c], ecx
shr ecx, 8
and cl, 1
mov dword [esp + 0x28], ebx
je 0x4297a7
test ebx, ebx
mov byte [esp + 0x17], 1
jne 0x4297ac
mov byte [esp + 0x17], 0
mov ecx, dword [ebp + 0x10]
push 0
push 0
call fcn.00408686
cmp byte [esp + 0x17], 0
jne 0x4298b7
test ebx, ebx
jle 0x4297d6
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x34]
and dword [eax + 0x18], 0
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x38]
push eax
call fcn.00423e85
mov eax, dword [esi + 0x14]
and dword [esp + 0x20], 0
test byte [edi + 0x60], 2
mov ebx, dword [eax]
pop ecx
pop ecx
je 0x42984c
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
sub eax, ebx
test eax, 0xfffffffe
je 0x429833
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.004014e3
cmp word [ebx], ax
je 0x42984c
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.004014e3
cmp word [ebx], ax
je 0x42984c
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x20
lea ecx, [esp + ecx + 0x38]
call fcn.004014e3
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
xor ecx, ecx
sar eax, 1
cmp word [esp + 0x18], cx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x5c]
setne cl
sub eax, ecx
cmp dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
jb 0x42987d
lea eax, [esp + 0x20]
mov edx, dword [edi + 0x60]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
movzx ecx, word [esp + ecx + 0x64]
mov eax, dword [eax]
shr edx, 2
and edx, 0xffffff01
push edx
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ecx
push dword [esp + 0x38]
push eax
push ebx
push dword [ebp + 0x10]
call fcn.0040b86c
add esp, 0x20
jmp 0x429aeb
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x38]
push eax
call fcn.00423e85
mov eax, dword [esi + 0x14]
pop ecx
pop ecx
mov ecx, dword [eax]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ebx, eax
sub ebx, ecx
sar ebx, 1
test byte [edi + 0x60], 2
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
je 0x42992e
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
test eax, 0xfffffffe
je 0x429929
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2b
lea ecx, [esp + ecx + 0x38]
call fcn.004014e3
mov ecx, dword [esp + 0x18]
cmp word [ecx], ax
je 0x42992e
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x38]
call fcn.004014e3
mov ecx, dword [esp + 0x18]
cmp word [ecx], ax
je 0x42992e
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x28]
cmp ebx, eax
jne 0x429954
cmp eax, dword [edi + 0x5c]
jg 0x429954
cmp byte [esp + 0x17], 0
jne 0x429954
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x1c]
call fcn.0040f9d8
jmp 0x429aeb
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x1c]
call fcn.0040f9d8
mov ecx, esi
call fcn.0040b7fe
push 1
push esi
lea ecx, [esp + 0x74]
call fcn.0040b669
push dword [ebp + 0x18]
mov byte [esp + 0xbc], 1
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x78]
push eax
lea ecx, [edi + 0x3c]
call fcn.0040b74b
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x74]
and dword [eax + 0x18], 0
cmp byte [esp + 0x17], 0
je 0x4299b7
lea eax, [esp + 0x74]
push 0x20
push eax
call fcn.00403be3
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esp + 0x78]
push eax
call fcn.00423e85
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
test eax, 0xfffffffe
jne 0x4299f2
test byte [edi + 0x60], 2
je 0x4299f2
lea eax, [esp + 0x74]
push 0x20
push eax
mov byte [esp + 0x1f], 1
call fcn.00403be3
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov edi, dword [edi + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
lea eax, [esp + 0x1c]
jb 0x429a1b
lea eax, [esp + 0x20]
mov edi, dword [eax]
cmp dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
ja 0x429a36
push edi
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040f9d8
jmp 0x429ada
xor ecx, ecx
cmp byte [esp + 0x17], cl
lea eax, [esp + 0x1c]
setne cl
add ebx, ecx
cmp edi, ebx
mov dword [esp + 0x20], ebx
jb 0x429a51
lea eax, [esp + 0x20]
movzx ebx, byte [esp + 0x17]
mov eax, dword [eax]
cmp ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
jae 0x429a93
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x18], eax
jmp 0x429a72
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004f547a
mov ecx, dword [esp + 0x24]
mov cx, word [ecx + ebx*2]
cmp cx, word [eax]
jne 0x429a93
inc ebx
inc dword [esp + 0x18]
cmp ebx, dword [esp + 0x1c]
jb 0x429a6e
cmp ebx, edi
jb 0x429a9b
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x28]
call fcn.0040f9d8
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
movzx ecx, word [esp + ecx + 0xa4]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
sub eax, edi
push eax
call fcn.00401561
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
sub edi, ebx
push edi
lea eax, [eax + ebx*2]
push eax
call fcn.00401fcc
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb8], 0
call fcn.0040b369
mov ecx, esi
call fcn.0040b7fe
or dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0040b369
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret