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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov cl, byte [edx + eax]
inc eax
mov byte [ebp - 0x10], cl
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
cmp ecx, 0xff
mov dword [esi + 0x84], ecx
jl 0x422e82
lea ecx, [eax + 2]
lea edi, [esi + 0x90]
mov dword [esi + 4], ecx
xor ecx, ecx
mov ch, byte [eax + edx + 1]
mov cl, byte [eax + edx]
mov eax, dword [esi + 0x88]
cmp eax, edi
mov dword [esi + 0x84], ecx
je 0x422e55
push eax
call fcn.0040b0b0
add esp, 4
mov edx, dword [esi + 0x84]
lea eax, [edx*4 + 4]
push eax
call fcn.0040b0a0
add esp, 4
mov dword [esi + 0x88], eax
test eax, eax
jne 0x422e82
mov dword [esi + 0x88], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x88]
mov edi, 1
mov dword [ebp - 4], edi
mov dword [ecx], 0
mov eax, dword [esi + 0x84]
cmp eax, edi
jl 0x4231dc
jmp 0x422ea9
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 0x51c]
call fcn.0040afc0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x423256
mov edx, dword [esi + 0x78]
mov ecx, ebx
push edx
call fcn.00412c20
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0x44]
mov dword [edx], ebx
mov eax, dword [esi + 0x88]
mov dword [eax + edi*4], ebx
mov ecx, dword [esi + 0x7c]
add ecx, edi
mov dword [ebx + 0xc], ecx
mov eax, dword [esi + 4]
mov edi, dword [esi]
inc eax
mov dl, byte [edi + eax - 1]
mov dword [esi + 4], eax
mov byte [ebp - 0x44], dl
mov ecx, dword [ebp - 0x44]
and ecx, 0xff
test cl, 0x10
mov dword [ebp - 0xc], ecx
je 0x423078
lea eax, [ebp - 0x74]
mov dword [ebx + 0x30], ecx
xor edi, edi
push eax
mov ecx, esi
mov byte [ebx + 0x16], 2
mov dword [ebx + 0x90], edi
call fcn.00422220
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.00422220
mov eax, dword [esi + 0x74]
lea edx, [ebx + 0x34]
push edx
lea ecx, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x74]
push ecx
push edx
call fcn.0040bfa0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add esp, 0x10
mov cl, byte [eax + ecx]
inc eax
mov dword [esi + 4], eax
lea eax, [ebx + 0x64]
test cl, cl
mov dword [ebp - 0x10], eax
mov byte [eax], cl
jbe 0x42303d
add ebx, 0x70
mov dword [ebp - 0x20], ebx
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov cl, byte [eax + edx]
mov edx, dword [esi + 0xc98]
inc eax
mov byte [ebp - 0x40], cl
mov dword [esi + 4], eax
lea eax, [ebp - 0x34]
push edx
push eax
mov ecx, esi
call fcn.00422170
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp - 0x14], ecx
mov cl, byte [eax + edx]
mov edx, dword [esi + 0xc98]
inc eax
mov byte [ebp - 0x3c], cl
mov dword [esi + 4], eax
lea eax, [ebp - 0x2c]
push edx
push eax
mov ecx, esi
call fcn.00422170
mov ecx, dword [eax]
mov eax, dword [ebp - 0x3c]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x40]
and eax, 0xff
and ecx, 0xff
mov dword [ebp - 0xc], edx
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x1c]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 8], eax
mov bl, byte [ebp - 8]
lea eax, [ebp - 0x18]
add cl, bl
mov ebx, dword [ebp - 0x28]
mov byte [ebx + edi + 0x65], cl
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x74]
push ecx
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.0040c180
mov cl, byte [ebp - 0x11]
mov al, 0xff
add esp, 0x10
cmp cl, al
jb 0x42301d
cmp byte [ebp - 0x15], al
jae 0x423021
mov byte [ebx + 0x14], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
xor edx, edx
inc edi
mov dl, byte [eax]
add ecx, 4
cmp edi, edx
mov dword [ebp - 0x20], ecx
jl 0x422f71
mov ebx, dword [ebp - 0x28]
mov ecx, dword [esi + 0x60]
lea edi, [esi + 0x60]
test ecx, ecx
je 0x4231bf
push eax
mov ecx, edi
call fcn.00419a20
cmp dword [edi], 0
je 0x4231bf
cmp word [edi + 4], 0x100
jl 0x42306f
cmp word [edi + 6], 0
jge 0x4231bf
mov byte [ebx + 0x14], 1
jmp 0x4231bf
test cl, 0x40
je 0x423123
lea ecx, [eax + 2]
xor edx, edx
mov dword [esi + 4], ecx
mov dh, byte [eax + edi + 1]
mov dl, byte [eax + edi]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov edi, edx
call fcn.00422220
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.00422220
lea edx, [ebx + 0x38]
lea eax, [ebp - 0x5c]
push edx
push 0
lea ecx, [ebp - 0x74]
push eax
push ecx
call fcn.0040bfa0
mov ecx, dword [esi + 0x3c]
add esp, 0x10
push edi
call fcn.00426020
mov ecx, 0xff
mov word [ebx + 0x26], cx
mov word [ebx + 0x24], cx
xor ecx, ecx
cmp eax, ecx
mov word [ebx + 0x20], cx
mov word [ebx + 0x22], cx
je 0x4231bf
cmp byte [eax + 0xa], 1
jne 0x4231bf
mov cx, word [ebp - 0xc]
lea edx, [eax + 0x24]
mov word [ebx + 0x30], cx
mov dword [ebx + 0x34], edx
mov edx, dword [ebp - 0x24]
add esi, 0x60
lea edi, [ebx + 0x68]
mov ecx, 5
mov byte [ebx + 0x16], 1
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x3c]
call fcn.00424710
mov esi, dword [ebp - 0x24]
jmp 0x4231bf
mov eax, dword [esi + 0xc98]
lea ecx, [ebp - 0x84]
push eax
push ecx
mov ecx, esi
call fcn.00422100
mov edx, dword [esi + 0xc98]
lea eax, [ebp - 0x7c]
push edx
push eax
mov ecx, esi
call fcn.00422100
mov ecx, dword [esi + 0x74]
lea edi, [ebx + 0x20]
push edi
lea edx, [ebp - 0x7c]
push ecx
lea eax, [ebp - 0x84]
push edx
push eax
call fcn.0040c0b0
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x60]
add esp, 0x10
test eax, eax
je 0x423177
push 1
push edi
call fcn.004198f0
xor eax, eax
mov ax, word [edi + 6]
cmp eax, 0xff
jge 0x4231ba
xor ecx, ecx
inc eax
mov cx, word [edi + 4]
xor edx, edx
imul ecx, eax
mov dx, word [edi + 2]
sar ecx, 8
imul edx, eax
mov word [edi + 4], cx
xor ecx, ecx
mov cx, word [edi]
imul ecx, eax
sar edx, 8
sar ecx, 8
mov word [edi + 2], dx
mov word [edi], cx
mov eax, 1
jmp 0x4231bc
xor eax, eax
mov byte [ebx + 0x14], al
push ebx
mov ecx, esi
call fcn.004227a0
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x84]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jle 0x422ea6
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov cl, byte [edx + eax]
inc eax
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov dword [esi + 4], eax
cmp ecx, 0xff
mov dword [esi + 0x80], ecx
jl 0x42325f
lea ecx, [eax + 2]
lea edi, [esi + 0x490]
mov dword [esi + 4], ecx
xor ecx, ecx
mov ch, byte [eax + edx + 1]
mov cl, byte [eax + edx]
mov eax, dword [esi + 0x8c]
cmp eax, edi
mov dword [esi + 0x80], ecx
je 0x423230
push eax
call fcn.0040b0b0
add esp, 4
mov edx, dword [esi + 0x80]
lea eax, [edx*8 + 8]
push eax
call fcn.0040b0a0
add esp, 4
mov dword [esi + 0x8c], eax
test eax, eax
jne 0x42325f
mov dword [esi + 0x8c], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x8c]
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ecx], 0
mov edx, dword [esi + 0x8c]
mov dword [edx + 4], 0
mov ecx, dword [esi + 0x80]
cmp ecx, eax
jl 0x4233f6
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 0x51c]
call fcn.0040afc0
mov edi, eax
test edi, edi
je 0x423256
mov eax, dword [esi + 0x78]
mov ecx, edi
push eax
call fcn.00412c20
mov ecx, dword [esi + 0x44]
xor ebx, ebx
mov edx, dword [ecx]
mov dword [edi + 8], edx
mov eax, dword [esi + 0x44]
mov edx, dword [ebp - 4]
mov dword [eax], edi
mov ecx, dword [esi + 0x8c]
mov dword [ecx + edx*8], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [ecx + 2]
mov dword [esi + 4], edx
mov bh, byte [eax + ecx + 1]
mov bl, byte [eax + ecx]
mov ecx, ebx
lea ebx, [edx + 2]
mov dword [esi + 4], ebx
mov ebx, dword [esi + 0x74]
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov bh, byte [edx + eax + 1]
and ecx, 0xffff
mov bl, byte [edx + eax]
sub ebx, ecx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
imul ebx
shrd eax, edx, 0x10
adc eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add ecx, eax
and ecx, 0xffff
push ecx
lea ecx, [esi + 0x48]
push ecx
call fcn.0040a5e0
mov edx, dword [esi + 0x8c]
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x84]
add eax, edx
lea edx, [ebp - 0x38]
add eax, ecx
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc98]
push ecx
push edx
mov ecx, esi
call fcn.00422100
mov eax, dword [esi + 0xc98]
lea ecx, [ebp - 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00422100
mov edx, dword [esi + 0x74]
lea ebx, [edi + 0x20]
push ebx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.0040c0b0
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x60]
add esp, 0x10
test eax, eax
je 0x423391
push 1
push ebx
call fcn.004198f0
xor eax, eax
mov ax, word [ebx + 6]
cmp eax, 0xff
jge 0x4233d4
xor edx, edx
inc eax
mov dx, word [ebx + 4]
xor ecx, ecx
imul edx, eax
mov cx, word [ebx + 2]
sar edx, 8
imul ecx, eax
mov word [ebx + 4], dx
xor edx, edx
mov dx, word [ebx]
imul edx, eax
sar ecx, 8
sar edx, 8
mov word [ebx + 2], cx
mov word [ebx], dx
mov eax, 1
jmp 0x4233d6
xor eax, eax
push edi
mov ecx, esi
mov byte [edi + 0x14], al
call fcn.004227a0
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x80]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jle 0x42328e
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret