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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec2b2
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp byte [esi + 0x44], cl
je 0x42d454
test byte [esi + 0x44], 1
je 0x42d33a
mov eax, dword [esi + 0x10]
cmp eax, ecx
jge 0x42d31e
lea eax, [ecx + 0xa]
jmp 0x42d335
cmp eax, 0x80
jae 0x42d32c
mov eax, 1
jmp 0x42d335
push eax
call fcn.004beba0
add esp, 4
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x44]
shr eax, 1
test al, 1
je 0x42d371
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x10]
cmp eax, 0x80
jae 0x42d357
mov eax, 1
jmp 0x42d360
push eax
call fcn.004beba0
add esp, 4
mov edi, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
add edi, eax
lea edx, [ecx + edi + 1]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x44]
shr eax, 2
test al, 1
je 0x42d3a9
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x10]
cmp eax, 0x80
jae 0x42d38f
mov eax, 1
jmp 0x42d398
push eax
call fcn.004beba0
add esp, 4
mov edi, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
add edi, eax
lea edx, [ecx + edi + 1]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x44]
shr eax, 4
test al, 1
je 0x42d3e1
mov edi, dword [esi + 0x28]
mov eax, dword [edi + 0x10]
cmp eax, 0x80
jae 0x42d3c7
mov eax, 1
jmp 0x42d3d0
push eax
call fcn.004beba0
add esp, 4
mov edi, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
add edi, eax
lea edx, [ecx + edi + 1]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x44]
shr eax, 5
test al, 1
je 0x42d41c
mov eax, dword [esi + 0x14]
test eax, eax
jns 0x42d3f9
mov eax, 0xa
jmp 0x42d410
cmp eax, 0x80
jae 0x42d407
mov eax, 1
jmp 0x42d410
push eax
call fcn.004beba0
add esp, 4
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x44]
shr eax, 7
test al, 1
je 0x42d454
mov edi, dword [esi + 0x3c]
mov eax, dword [edi + 0x10]
cmp eax, 0x80
jae 0x42d43a
mov eax, 1
jmp 0x42d443
push eax
call fcn.004beba0
add esp, 4
mov edi, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
add edi, eax
lea edx, [ecx + edi + 1]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x1c]
add dword [esp + 0x14], eax
xor edi, edi
test eax, eax
jle 0x42d4f4
cmp edi, eax
jl 0x42d4a5
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b], 0
call fcn.0049a7e0
mov dword [esp + 0x80], edi
or dword [esp + 0x18], 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x23]
call fcn.0049ad20
mov dword [esp + 0x80], 0xffffffff
test byte [esp + 0x18], 1
je 0x42d4c5
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x20]
call fcn.0049a810
mov eax, dword [esi + 0x18]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0x10]
cmp eax, 0x80
jae 0x42d4dc
mov eax, 1
jmp 0x42d4e5
push eax
call fcn.004beba0
add esp, 4
mov ecx, dword [ebx + 0x10]
add ecx, eax
add dword [esp + 0x14], ecx
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x42d4a5
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x14]
add edx, eax
xor ebx, ebx
mov dword [esp + 0x14], edx
test eax, eax
jle 0x42d5a3
cmp ebx, eax
jl 0x42d54e
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x54]
mov byte [esp + 0x2a], bl
call fcn.0049a7e0
mov dword [esp + 0x80], 1
or dword [esp + 0x18], 2
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x22]
call fcn.0049ad20
mov dword [esp + 0x80], 0xffffffff
test byte [esp + 0x18], 2
je 0x42d56e
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x48]
call fcn.0049a810
mov ecx, dword [esi + 0x2c]
mov edi, dword [ecx + ebx*4]
mov eax, dword [edi + 0x10]
cmp eax, 0x80
jae 0x42d585
mov eax, 1
jmp 0x42d58e
push eax
call fcn.004beba0
add esp, 4
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x14]
add ecx, eax
add edx, ecx
inc ebx
mov dword [esp + 0x14], edx
cmp ebx, dword [esi + 0x30]
jl 0x42d54e
mov ecx, dword [esi + 4]
lea eax, [esi + 4]
test ecx, ecx
je 0x42d5ca
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
je 0x42d5ca
push eax
call fcn.004ba6e0
mov ecx, dword [esp + 0x18]
add esp, 4
add ecx, eax
mov dword [esi + 0x40], ecx
mov eax, ecx
jmp 0x42d5cf
mov eax, edx
mov dword [esi + 0x40], edx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret