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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
mov esi, dword [edi + 8]
lea edx, [ebp + 8]
mov eax, dword [edi]
add esi, 0x28
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
call fcn.00425030
cmp dword [edi + 0x5c], 7
mov dword [edi + 0x14], ebx
jne 0x4251fd
mov eax, dword [esp + 0x14]
mov byte [eax + 0x40], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x1c]
and ecx, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp ecx, 1
jne 0x425282
mov eax, dword [edi + 8]
add eax, 0x168
mov dword [esp + 0x20], eax
test byte [eax + 0x1c], 0x10
je 0x42522e
mov ebp, dword [eax + 0x18]
mov ebx, dword [eax + 4]
shr ebp, 2
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
cmp ebp, 2
jl 0x425260
xor esi, esi
lea edi, [ebp - 1]
mov eax, dword [ebx + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [ebx + ecx*4 + 4]
add ecx, 2
add esi, dword [eax + 4]
cmp ecx, edi
jl 0x425240
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x24]
cmp ecx, ebp
jge 0x42526f
mov eax, dword [ebx + ecx*4]
mov ecx, dword [edi + 0x1c]
add ecx, dword [eax + 4]
jmp 0x425272
mov ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x18]
add eax, edx
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x58]
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, dword [esp + 0x18]
jge 0x4256b3
cmp ecx, 2
jne 0x4252aa
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4], 0x96
mov ecx, dword [esp + 0x1c]
jne 0x425282
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xe8], 0
je 0x4252f2
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [edi + 0x5c], 9
mov esi, 1
cmovne ecx, eax
lea eax, [edi + 0x38]
push ecx
push 0x4f4050
push dword [esp + 0x1c]
push eax
call fcn.00407b40
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [edi + 0x1c]
cmp edx, eax
jge 0x4252fe
mov eax, dword [edi + 4]
jmp 0x425322
sub edx, eax
xor ecx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x42531d
jmp 0x425310
inc ecx
sub edx, eax
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x425310
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x64]
and cl, 3
mov dword [esp + 0x14], eax
mov eax, 4
cmp cl, 1
jne 0x4253ef
mov word [esi + 0x1c], ax
mov eax, edx
cdq
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov byte [esi + 0x1e], cl
mov word [esi + 0x44], ax
movzx eax, byte [edx]
mov ecx, dword [eax*4 + 0x4f4908]
mov eax, ecx
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x425382
cmp byte [ecx], 0
je 0x42537b
inc eax
cmp byte [eax], 0
jne 0x425375
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x40], eax
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [edx + 1], 0xee
jne 0x4253ef
lea ecx, [ebp*4 + 4]
xor eax, eax
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x4253b6
mov ecx, dword [edx + 0x10]
cmp dword [ebx + eax*4], ecx
je 0x4253b2
inc eax
cmp eax, ebp
jl 0x4253a8
mov ecx, dword [esp + 0x1c]
cmp eax, ebp
jne 0x4253ef
mov ebx, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
mov edx, ecx
mov ecx, ebx
setne al
push eax
call fcn.00422dd0
add esp, 4
test eax, eax
jne 0x4253ef
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 0x10]
mov dword [ecx + ebp*4], eax
mov eax, dword [esp + 0x1c]
or word [ebx + 0x1c], 0x10
mov dword [ebx + 0x18], eax
mov ebx, dword [esp + 0x14]
mov ecx, 4
mov word [esi + 0x1c], cx
mov eax, dword [ebx + 4]
mov byte [esi + 0x1e], 1
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov word [esi + 0x44], cx
mov eax, dword [ebx + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], 1
mov word [esi + 0x6c], cx
mov eax, dword [ebx + 0xc]
cdq
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], 1
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x9c]
test ecx, ecx
je 0x425458
test eax, eax
je 0x425458
cmp eax, dword [ecx + 0x10c]
jb 0x425458
cmp eax, dword [ecx + 0x110]
jae 0x425458
movzx eax, word [ecx + 0xf0]
jmp 0x425462
push eax
call dword [0x510f4c]
add esp, 4
cmp eax, 0x20
jge 0x425488
mov edx, dword [esi + 0x9c]
mov ecx, dword [esi + 0x78]
call fcn.00407740
mov ecx, dword [esi + 0x78]
mov edx, 0x20
call fcn.00407990
mov dword [esi + 0x9c], eax
mov eax, 0x400
test word [esi + 0x94], ax
je 0x4254a8
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4254a8
push dword [esi + 0x7c]
call eax
add esp, 4
mov edx, dword [esi + 0x9c]
mov eax, 1
mov dword [esi + 0x7c], edx
test edx, edx
jne 0x4254c3
mov word [esi + 0x94], ax
jmp 0x4254cf
mov ecx, 0xe7ff
and word [esi + 0x94], cx
mov dword [esi + 0x98], 0
test edx, edx
je 0x4256c1
mov eax, 0x602
push ecx
mov ecx, ebx
mov word [esi + 0x94], ax
call fcn.00424c50
mov ecx, dword [esi + 0x7c]
mov ebp, eax
add esp, 4
cmp ebp, ecx
je 0x4255dc
test ebp, ebp
jne 0x425563
test byte [esi + 0x94], 0x40
je 0x425529
mov edx, dword [esi + 0x88]
mov ecx, dword [edx]
mov eax, dword [ecx + 0xc4]
mov dword [edx + 4], eax
mov dword [ecx + 0xc4], edx
test byte [esi + 0x94], 0x20
je 0x42553d
mov ecx, dword [esi + 0x88]
call fcn.00410150
mov ax, word [esi + 0x94]
mov ecx, 0xbe01
and ax, cx
mov byte [esi + 0x96], 5
or ax, 1
mov word [esi + 0x94], ax
jmp 0x425601
mov eax, dword [esi + 0x78]
test eax, eax
je 0x42556f
mov eax, dword [eax + 0x58]
jmp 0x425574
mov eax, 0x3b9aca00
xor ebx, ebx
test eax, eax
js 0x42558b
lea ebx, [ebx]
cmp byte [ebx + ebp], 0
je 0x42558b
inc ebx
cmp ebx, eax
jle 0x425580
xor eax, eax
lea ecx, [esi + 0x78]
cmp eax, 0x407690
jne 0x4255a9
call fcn.004231c0
mov dword [esi + 0x9c], ebp
mov eax, 0x202
jmp 0x4255b3
call fcn.004231c0
mov eax, 0xa02
mov dword [esi + 0x90], ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x98], 0
mov dword [esi + 0x7c], ebp
mov word [esi + 0x94], ax
mov word [esi + 0x96], 0x103
jmp 0x425601
mov eax, ecx
test ecx, ecx
je 0x4255f4
cmp byte [ecx], 0
je 0x4255ed
inc eax
cmp byte [eax], 0
jne 0x4255e7
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x90], eax
mov byte [esi + 0x97], 1
mov byte [esi + 0x96], 3
mov eax, dword [edi + 0x64]
and al, 3
cmp al, 1
jne 0x42567a
push 0
mov edx, 4
lea ecx, [esi + 0xa0]
call fcn.00422dd0
add esp, 4
test eax, eax
jne 0x4251f0
mov eax, 0x602
mov dword [esi + 0xb8], 2
mov word [esi + 0xbc], ax
movzx eax, byte [ebx + 3]
push eax
push str._.2x
push dword [esi + 0xa4]
push 3
call fcn.004090c0
mov word [esi + 0xbe], 0x103
mov eax, 1
add esp, 0x10
mov word [esi + 0xe4], ax
mov byte [esi + 0xe6], 5
mov cx, word [edi + 0x64]
mov eax, 2
and cx, 3
mov dword [edi + 0x5c], 0
dec cx
mov esi, 0x64
sub ax, cx
shl ax, 2
mov word [edi + 0x2c], ax
mov eax, dword [edi + 8]
add eax, 0x28
mov dword [edi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov esi, 0x65
mov dword [edi + 0x5c], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret