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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x84
mov esi, dword [esp + 0xa0]
mov dword [esp + eax + 0x44], 0
add eax, 4
cmp eax, 0x20
jb 0x4e4933
mov eax, dword [esp + 0x9c]
test esi, esi
lea ecx, [eax + esi*2]
je 0x4e4961
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x44], 1
cmp eax, ecx
jne 0x4e4951
movzx ebx, word [esp + 0x62]
test bx, bx
jne 0x4e4a67
cmp word [esp + 0x60], 0
jne 0x4e5441
cmp word [esp + 0x5e], 0
jne 0x4e544e
cmp word [esp + 0x5c], 0
jne 0x4e545b
cmp word [esp + 0x5a], 0
jne 0x4e5468
cmp word [esp + 0x58], 0
jne 0x4e5475
cmp word [esp + 0x56], 0
jne 0x4e5482
cmp word [esp + 0x54], 0
jne 0x4e549c
cmp word [esp + 0x52], 0
jne 0x4e548f
cmp word [esp + 0x50], 0
jne 0x4e54c3
cmp word [esp + 0x4e], 0
jne 0x4e54b6
cmp word [esp + 0x4c], 0
jne 0x4e54a9
cmp word [esp + 0x4a], 0
jne 0x4e54ea
cmp word [esp + 0x48], 0
jne 0x4e54d0
cmp word [esp + 0x46], 0
jne 0x4e5361
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa4]
xor ecx, ecx
mov eax, dword [eax]
lea edx, [eax + 4]
mov dword [ebx], edx
xor edx, edx
mov byte [eax], 0x40
mov word [eax + 2], dx
mov byte [eax + 1], 1
mov eax, dword [ebx]
lea edx, [eax + 4]
mov dword [ebx], edx
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], cx
mov eax, dword [esp + 0xa8]
mov dword [eax], 1
xor eax, eax
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0xf
nop
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x24]
mov eax, dword [eax]
cmp edi, eax
cmovbe eax, edi
cmp word [esp + 0x46], 0
mov dword [esp], eax
jne 0x4e537f
cmp edi, 2
je 0x4e53a5
cmp word [esp + 0x48], 0
jne 0x4e53a5
cmp edi, 3
je 0x4e540d
cmp word [esp + 0x4a], 0
jne 0x4e540d
cmp edi, 4
je 0x4e5400
cmp word [esp + 0x4c], 0
jne 0x4e5400
cmp edi, 5
je 0x4e53f3
cmp word [esp + 0x4e], 0
jne 0x4e53f3
cmp edi, 6
je 0x4e53e6
cmp word [esp + 0x50], 0
jne 0x4e53e6
cmp edi, 7
je 0x4e53d9
cmp word [esp + 0x52], 0
jne 0x4e53d9
cmp edi, 8
je 0x4e53cc
cmp word [esp + 0x54], 0
jne 0x4e53cc
cmp edi, 9
je 0x4e53bf
cmp word [esp + 0x56], 0
jne 0x4e53bf
cmp edi, 0xa
je 0x4e53b2
cmp word [esp + 0x58], 0
jne 0x4e53b2
cmp edi, 0xb
je 0x4e5434
cmp word [esp + 0x5a], 0
jne 0x4e5434
cmp edi, 0xc
je 0x4e5427
cmp word [esp + 0x5c], 0
jne 0x4e5427
cmp edi, 0xd
je 0x4e541a
cmp word [esp + 0x5e], 0
jne 0x4e541a
cmp edi, 0xf
jne 0x4e54dd
cmp word [esp + 0x60], 1
sbb eax, eax
not eax
add eax, 0xf
mov dword [esp + 4], eax
movzx edx, word [esp + 0x46]
mov eax, 2
sub eax, edx
mov edi, edx
mov edx, eax
lea eax, [edx + edx]
movzx edx, word [esp + 0x48]
sub eax, edx
mov ecx, edx
js 0x4e52f1
movzx edx, word [esp + 0x4a]
add eax, eax
sub eax, edx
mov word [esp + 0xc], dx
js 0x4e52f1
movzx edx, word [esp + 0x4c]
add eax, eax
sub eax, edx
mov word [esp + 8], dx
js 0x4e52f1
movzx edx, word [esp + 0x4e]
add eax, eax
sub eax, edx
mov word [esp + 0x14], dx
js 0x4e52f1
movzx edx, word [esp + 0x50]
add eax, eax
sub eax, edx
mov word [esp + 0x10], dx
js 0x4e52f1
movzx edx, word [esp + 0x52]
add eax, eax
sub eax, edx
mov word [esp + 0x18], dx
js 0x4e52f1
movzx edx, word [esp + 0x54]
add eax, eax
sub eax, edx
mov word [esp + 0x20], dx
js 0x4e52f1
movzx edx, word [esp + 0x56]
add eax, eax
sub eax, edx
mov word [esp + 0x1c], dx
js 0x4e52f1
movzx edx, word [esp + 0x58]
add eax, eax
sub eax, edx
mov word [esp + 0x40], dx
js 0x4e52f1
movzx edx, word [esp + 0x5a]
add eax, eax
sub eax, edx
mov word [esp + 0x2c], dx
js 0x4e52f1
movzx edx, word [esp + 0x5c]
add eax, eax
sub eax, edx
mov word [esp + 0x28], dx
js 0x4e52f1
movzx edx, word [esp + 0x5e]
add eax, eax
sub eax, edx
mov word [esp + 0x30], dx
js 0x4e52f1
lea ebp, [eax + eax]
movzx eax, word [esp + 0x60]
sub ebp, eax
mov edx, eax
mov eax, ebp
js 0x4e52f1
add eax, eax
cmp eax, ebx
js 0x4e52f1
je 0x4e4cdf
mov ebp, dword [esp + 0x98]
test ebp, ebp
je 0x4e52f1
cmp dword [esp + 0x24], 1
jne 0x4e52f1
add ecx, edi
movzx eax, word [esp + 0x18]
xor ebx, ebx
mov word [esp + 0x6a], cx
add cx, word [esp + 0xc]
mov word [esp + 0x66], bx
mov word [esp + 0x68], di
mov word [esp + 0x6c], cx
add cx, word [esp + 8]
mov word [esp + 0x6e], cx
add cx, word [esp + 0x14]
mov word [esp + 0x70], cx
add cx, word [esp + 0x10]
add eax, ecx
mov word [esp + 0x72], cx
mov word [esp + 0x74], ax
add ax, word [esp + 0x20]
mov word [esp + 0x76], ax
add ax, word [esp + 0x1c]
mov word [esp + 0x78], ax
add ax, word [esp + 0x40]
mov word [esp + 0x7a], ax
add ax, word [esp + 0x2c]
mov word [esp + 0x7c], ax
add ax, word [esp + 0x28]
mov word [esp + 0x7e], ax
add ax, word [esp + 0x30]
mov word [esp + 0x80], ax
add eax, edx
mov word [esp + 0x82], ax
xor eax, eax
test esi, esi
je 0x4e4da4
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0xac]
movzx edx, word [ebx + eax*2]
test dx, dx
je 0x4e4d9d
movzx ecx, word [esp + edx*2 + 0x64]
lea ebp, [ecx + 1]
mov word [edi + ecx*2], ax
mov word [esp + edx*2 + 0x64], bp
add eax, 1
cmp esi, eax
jne 0x4e4d83
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x4e5301
cmp dword [esp + 0x98], 1
jne 0x4e526c
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, dword [esp + 0x98]
mov ecx, eax
mov dword [esp + 0x1c], eax
shl ebx, cl
cmp ebx, 0x354
mov eax, ebx
ja 0x4e52e1
mov byte [esp + 0x43], 0
mov byte [esp + 0x42], 1
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x3c], 0x517800
mov dword [esp + 0x38], 0x517840
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
xor edi, edi
sub eax, 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 0x34], eax
mov dword [esp + 8], edi
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea esi, [esi]
movzx eax, byte [esp + 4]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
sub al, byte [esp + 0xc]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
lea edx, [eax + 1]
mov esi, eax
cmp edx, edi
jb 0x4e4e8d
cmp eax, edi
jb 0x4e5260
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
sub eax, edi
movzx ebx, byte [ebx + eax*2]
movzx esi, word [esi + eax*2]
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0xc]
mov edx, 1
mov eax, 1
shl edx, cl
movzx ecx, byte [esp + 0x10]
mov dword [esp], edx
shl eax, cl
movzx ecx, byte [esp + 0xc]
mov ebp, eax
mov dword [esp + 0x28], eax
lea eax, [edx*4]
mov edi, eax
mov eax, dword [esp + 8]
neg edi
shr eax, cl
mov ecx, ebp
add eax, ebp
mov ebp, dword [esp + 0x18]
sub eax, edx
lea eax, [ebp + eax*4]
mov ebp, ebx
movzx ebx, byte [esp + 0x40]
lea esi, [esi]
mov edx, ebp
mov byte [eax + 1], bl
mov word [eax + 2], si
mov byte [eax], dl
add eax, edi
sub ecx, dword [esp]
jne 0x4e4ee0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x4e4f1a
mov ebp, ebx
lea esi, [esi]
shr eax, 1
test ebp, eax
jne 0x4e4f10
mov dword [esp + 8], ebp
test eax, eax
je 0x4e5240
lea edx, [eax - 1]
and edx, dword [esp + 8]
add eax, edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 4]
movzx eax, word [esp + ebx*2 + 0x44]
mov word [esp], ax
sub eax, 1
test ax, ax
mov word [esp + ebx*2 + 0x44], ax
jne 0x4e4f6c
mov eax, dword [esp + 0x24]
cmp ebx, eax
je 0x4e531d
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x9c]
movzx eax, word [eax + 2]
movzx eax, word [ebx + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x1c]
cmp eax, edi
jbe 0x4e5236
mov ebx, dword [esp + 0x34]
and ebx, dword [esp + 8]
cmp dword [esp + 0x30], ebx
je 0x4e5236
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
test esi, esi
cmove esi, edi
mov edi, dword [esp + 0x28]
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edx
lea esi, [esi + edi*4]
mov edi, eax
sub edi, edx
mov dword [esp + 0x18], esi
mov ecx, edi
mov esi, eax
mov eax, 1
mov dword [esp + 0x10], edi
shl eax, cl
cmp esi, ebp
jae 0x4e51b5
movzx edx, word [esp + esi*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x4e51b5
mov esi, dword [esp + 0xc]
lea edx, [edi + 1]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 2]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 3]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 4]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 5]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 6]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 7]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 8]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 9]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xa]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xb]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xc]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xd]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xe]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x4e5250
lea edx, [edi + 0xf]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x4e5250
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
mov ecx, edi
add ecx, 0x10
test eax, eax
cmovg edx, ecx
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0x10]
mov eax, 1
shl eax, cl
add dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
cmp esi, 0x354
jbe 0x4e51dc
cmp byte [esp + 0x42], 0
jne 0x4e52e1
cmp dword [esp + 0x20], 0x250
jbe 0x4e51f1
cmp byte [esp + 0x43], 0
jne 0x4e52e1
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x10]
lea edx, [ebx*4]
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
mov byte [eax + ebx*4], cl
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x1c]
mov eax, dword [eax]
mov byte [eax + edx + 1], cl
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + edx + 2], ax
add dword [esp + 0x14], 2
jmp 0x4e4e50
mov dword [esp + 8], 0
jmp 0x4e4f2f
mov dword [esp + 0x10], edx
jmp 0x4e51b5
xor esi, esi
mov ebx, 0x60
jmp 0x4e4e8d
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0x517780
mov dword [esp + 0x38], 0x5177c0
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp dword [esp + 0x98], 1
sete byte [esp + 0x42]
cmp eax, 0x354
movzx ebx, byte [esp + 0x42]
jbe 0x4e52bc
test bl, bl
jne 0x4e52e1
cmp dword [esp + 0x98], 2
sete byte [esp + 0x43]
cmp eax, 0x250
movzx ebx, byte [esp + 0x43]
jbe 0x4e4e0c
test bl, bl
je 0x4e4e0c
add esp, 0x84
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x84
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x4e5284
mov edi, dword [esp + 8]
test edi, edi
je 0x4e533d
mov eax, dword [esp + 0x18]
movzx ebx, byte [esp + 0x40]
xor edx, edx
lea eax, [eax + edi*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
shl eax, 2
add dword [ebx], eax
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
xor eax, eax
jmp 0x4e4a5c
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x24], 1
mov edx, dword [eax]
mov eax, 1
test edx, edx
cmove eax, edx
mov dword [esp], eax
movzx ecx, word [esp + 0x46]
mov edx, 2
mov eax, 0xffffffff
sub edx, ecx
mov edi, ecx
js 0x4e4a5c
mov dword [esp + 4], 1
jmp 0x4e4bb7
mov dword [esp + 4], 2
jmp 0x4e4ba7
mov dword [esp + 4], 0xa
jmp 0x4e4ba7
mov dword [esp + 4], 9
jmp 0x4e4ba7
mov dword [esp + 4], 8
jmp 0x4e4ba7
mov dword [esp + 4], 7
jmp 0x4e4ba7
mov dword [esp + 4], 6
jmp 0x4e4ba7
mov dword [esp + 4], 5
jmp 0x4e4ba7
mov dword [esp + 4], 4
jmp 0x4e4ba7
mov dword [esp + 4], 3
jmp 0x4e4ba7
mov dword [esp + 4], 0xd
jmp 0x4e4ba7
mov dword [esp + 4], 0xc
jmp 0x4e4ba7
mov dword [esp + 4], 0xb
jmp 0x4e4ba7
mov dword [esp + 0x24], 0xe
jmp 0x4e4a70
mov dword [esp + 0x24], 0xd
jmp 0x4e4a70
mov dword [esp + 0x24], 0xc
jmp 0x4e4a70
mov dword [esp + 0x24], 0xb
jmp 0x4e4a70
mov dword [esp + 0x24], 0xa
jmp 0x4e4a70
mov dword [esp + 0x24], 9
jmp 0x4e4a70
mov dword [esp + 0x24], 7
jmp 0x4e4a70
mov dword [esp + 0x24], 8
jmp 0x4e4a70
mov dword [esp + 0x24], 4
jmp 0x4e4a70
mov dword [esp + 0x24], 5
jmp 0x4e4a70
mov dword [esp + 0x24], 6
jmp 0x4e4a70
mov dword [esp + 0x24], 2
jmp 0x4e4a70
mov dword [esp + 4], 0xe
jmp 0x4e4ba7
mov dword [esp + 0x24], 3
jmp 0x4e4a70