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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [0x5ec348]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
add eax, 0x6c
call fcn.004b1110
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.004b3ed0
mov byte [ebp - 0x35], al
sub esp, 4
test al, al
je 0x4e2109
mov dword [ebp - 0x34], 0
xor ebx, ebx
mov byte [ebp - 0x2c], 0
lea esi, [esi]
lea eax, [ebp - 0x21]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.004ffeb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x10], 0
jne 0x4e20f0
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0xa4]
mov byte [ebp - 0x36], al
test al, al
jne 0x4e1bdd
cmp byte [ebp - 0x35], 0
jne 0x4e248a
mov byte [ebp - 0x3c], 0
lea eax, [ebx - 0x30]
cmp ax, 9
ja 0x4e1ad5
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x2c], edi
add edi, 1
cmp dword [eax - 8], edi
jb 0x4e1a1a
mov eax, dword [eax - 4]
test eax, eax
jle 0x4e1a27
mov dword [esp], edi
mov ecx, esi
call fcn.00501ed0
sub esp, 4
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
mov byte [eax + edx], bl
mov eax, dword [esi]
mov dword [eax - 0xc], edi
mov edi, dword [ebp - 0x2c]
mov dword [eax - 4], 0
mov byte [ebp - 0x2c], 1
mov byte [eax + edi + 1], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x4e1b98
add eax, 2
mov ecx, 0xffffffff
mov dword [ebx + 8], eax
mov word [ebp + 0xc], cx
cmp eax, edx
jae 0x4e1bc0
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e1bd1
cmp ax, 0xffff
mov ecx, dword [ebp + 0x10]
sete bl
cmp word [ebp + 0x14], 0xffff
sete al
mov edx, eax
test ecx, ecx
je 0x4e1a9c
test al, al
jne 0x4e1fa0
cmp bl, dl
je 0x4e1cf2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4e1ad0
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e2467
movzx ebx, word [eax]
cmp bx, 0xffff
jne 0x4e19f6
mov dword [ebp + 8], 0
lea esi, cs:[esi]
mov ebx, 0xffffffff
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x24], bx
je 0x4e2333
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x94], bx
je 0x4e1afb
cmp word [eax + 0xa0], bx
jne 0x4e1cf2
movzx eax, byte [ebp - 0x3c]
xor eax, 1
and byte [ebp - 0x2c], al
je 0x4e1cf2
mov dword [esp], 0x65
mov ecx, esi
call fcn.00502270
mov ecx, dword [ebp + 8]
sub esp, 4
call fcn.0052e110
mov ebx, 0xffffffff
lea eax, [ebp + 0x10]
lea ecx, [ebp + 8]
mov word [ebp + 0xc], bx
mov dword [esp], eax
call fcn.004b3ed0
sub esp, 4
test al, al
jne 0x4e23f8
lea ecx, [ebp + 8]
call fcn.004b3f70
mov ebx, eax
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x72], bx
je 0x4e23ee
cmp bx, word [eax + 0x70]
jne 0x4e235e
mov eax, 0x2d
mov dword [esp], eax
mov ecx, esi
call fcn.00502270
movzx eax, byte [ebp - 0x2c]
mov ebx, dword [ebp + 8]
sub esp, 4
mov byte [ebp - 0x3c], al
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
cmp eax, edx
jb 0x4e1a58
lea esi, [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov edi, 0xffffffff
mov word [ebp + 0xc], di
cmp eax, edx
jb 0x4e1a6f
lea esi, cs:[esi]
nop
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp ax, 0xffff
jne 0x4e1a7c
mov dword [ebp + 8], 0
jmp 0x4e1a7c
cmp byte [ebp - 0x35], 0
jne 0x4e248a
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x3c], 0
lea edi, [eax + 0x78]
movzx eax, byte [eax + 0x10]
mov dword [ebp - 0x40], edi
lea esi, cs:[esi]
test al, al
je 0x4e1c11
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x26], bx
je 0x4e1fc8
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x24], bx
je 0x4e1d88
mov eax, dword [ebp - 0x30]
movzx ecx, byte [ebp - 0x2c]
lea edx, [eax + 0x8c]
mov eax, dword [ebp - 0x40]
jmp 0x4e1c3b
add eax, 2
cmp edx, eax
je 0x4e1e80
cmp word [eax], bx
jne 0x4e1c30
mov edi, dword [ebp - 0x40]
sub eax, edi
sar eax, 1
lea ebx, [eax + 0x30]
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x2c], edi
add edi, 1
cmp dword [eax - 8], edi
jb 0x4e1c61
mov eax, dword [eax - 4]
test eax, eax
jle 0x4e1c6e
mov dword [esp], edi
mov ecx, esi
call fcn.00501ed0
sub esp, 4
mov eax, dword [esi]
add dword [ebp - 0x34], 1
mov edx, dword [eax - 0xc]
mov byte [eax + edx], bl
mov eax, dword [esi]
mov dword [eax - 0xc], edi
mov edi, dword [ebp - 0x2c]
mov dword [eax - 4], 0
mov byte [eax + edi + 1], 0
movzx eax, byte [ebp - 0x36]
mov byte [ebp - 0x2c], al
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x4e1e04
add eax, 2
mov ecx, 0xffffffff
mov dword [ebx + 8], eax
mov word [ebp + 0xc], cx
cmp eax, edx
jae 0x4e1e28
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e1e39
cmp ax, 0xffff
mov ecx, dword [ebp + 0x10]
sete bl
cmp word [ebp + 0x14], 0xffff
sete al
mov edx, eax
test ecx, ecx
je 0x4e1cea
test al, al
jne 0x4e2008
cmp dl, bl
jne 0x4e1e48
mov eax, dword [ebp - 0x20]
mov esi, dword [eax - 0xc]
mov ebx, eax
test esi, esi
je 0x4e1d4f
cmp byte [ebp - 0x35], 0
jne 0x4e20e8
cmp byte [ebp - 0x3c], 0
jne 0x4e20e8
movsx eax, byte [ebp - 0x34]
lea edi, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.00502270
mov ebx, dword [ebp - 0x20]
sub esp, 4
mov dword [esp + 8], edi
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.0054a780
test al, al
jne 0x4e1d4f
mov eax, dword [ebp - 0x44]
mov dword [eax], 4
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, 0xffffffff
lock xadd dword [ebx - 4], eax
test eax, eax
jle 0x4e2313
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x5ec348]
jne 0x4e251f
lea esp, [ebp - 0xc]
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
movzx ebx, byte [ebp - 0x35]
or byte [ebp - 0x3c], bl
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 0xc]
jne 0x4e23fb
test edx, edx
je 0x4e1db1
movsx eax, byte [ebp - 0x34]
lea ecx, [ebp - 0x20]
mov dword [esp], eax
call fcn.00502270
sub esp, 4
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
cmp dword [eax - 8], ebx
jb 0x4e1dc5
mov eax, dword [eax - 4]
test eax, eax
jle 0x4e1dd2
mov dword [esp], ebx
mov ecx, esi
call fcn.00501ed0
sub esp, 4
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
mov byte [eax + edx], 0x2e
mov eax, dword [esi]
mov dword [eax - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [eax - 4], 0
mov byte [eax + edi + 1], 0
movzx eax, byte [ebp - 0x36]
mov edx, dword [ebx + 0xc]
mov byte [ebp - 0x35], al
mov eax, dword [ebx + 8]
cmp eax, edx
jb 0x4e1ca6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov edi, 0xffffffff
mov word [ebp + 0xc], di
cmp eax, edx
jb 0x4e1cbd
lea esi, [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp ax, 0xffff
jne 0x4e1cca
mov dword [ebp + 8], 0
jmp 0x4e1cca
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4e2030
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e24a9
movzx ebx, word [eax]
cmp bx, 0xffff
je 0x4e245b
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x10]
jmp 0x4e1c00
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x2c], cl
cmp word [eax + 0x94], bx
je 0x4e1e9f
mov eax, dword [ebp - 0x30]
cmp word [eax + 0xa0], bx
jne 0x4e1cf2
movzx edx, byte [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
xor edx, 1
and byte [ebp - 0x2c], dl
mov ecx, dword [eax - 0xc]
je 0x4e1cf5
test ecx, ecx
je 0x4e1ec3
cmp byte [ebp - 0x35], 0
je 0x4e20a0
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
cmp dword [eax - 8], ebx
jb 0x4e1ed7
mov eax, dword [eax - 4]
test eax, eax
jle 0x4e1ee4
mov dword [esp], ebx
mov ecx, esi
call fcn.00501ed0
sub esp, 4
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [eax - 0xc]
mov byte [eax + edx], 0x65
mov eax, dword [esi]
mov dword [eax - 4], 0
mov dword [eax - 0xc], ebx
mov byte [eax + edi + 1], 0
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e2309
add eax, 2
mov dword [ecx + 8], eax
mov ebx, 0xffffffff
lea eax, [ebp + 0x10]
lea ecx, [ebp + 8]
mov word [ebp + 0xc], bx
mov dword [esp], eax
call fcn.004b3ed0
sub esp, 4
test al, al
jne 0x4e23f8
mov ecx, dword [ebp + 8]
movzx ebx, word [ebp + 0xc]
test ecx, ecx
je 0x4e1f4a
cmp bx, 0xffff
je 0x4e20c3
mov eax, dword [ebp - 0x30]
movzx edx, word [eax + 0x72]
movzx eax, byte [eax + 0x10]
cmp dx, bx
je 0x4e2070
mov edi, dword [ebp - 0x30]
cmp word [edi + 0x70], bx
jne 0x4e2090
test al, al
jne 0x4e2048
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x24], bx
je 0x4e23e2
mov eax, 0x2d
mov dword [esp], eax
mov ecx, esi
call fcn.00502270
movzx eax, byte [ebp - 0x2c]
sub esp, 4
mov byte [ebp - 0x3c], al
jmp 0x4e1c95
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e2329
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e20b7
cmp ax, 0xffff
sete dl
jmp 0x4e1a9c
movzx ecx, byte [ebp - 0x3c]
or byte [ebp - 0x35], cl
jne 0x4e23f8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4e24b5
movsx eax, al
lea ecx, [ebp - 0x20]
mov dword [esp], eax
call fcn.00502270
mov byte [ebp - 0x3c], 0
sub esp, 4
mov dword [ebp - 0x34], 0
jmp 0x4e1c95
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e2421
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e22fd
cmp ax, 0xffff
sete dl
jmp 0x4e1cea
mov eax, dword [ebp - 0x30]
mov ebx, 0xffffffff
movzx eax, byte [eax + 0x10]
jmp 0x4e1c00
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x26], bx
je 0x4e22e8
cmp word [eax + 0x24], bx
je 0x4e22e8
xor eax, eax
cmp dx, bx
setne al
lea eax, [eax + eax + 0x2b]
jmp 0x4e1f85
test al, al
jne 0x4e2048
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x24], bx
je 0x4e23e2
mov eax, 0x2b
jmp 0x4e1f85
movzx ecx, byte [ebp - 0x2c]
mov byte [ebp - 0x3c], cl
jmp 0x4e1c00
movsx eax, byte [ebp - 0x34]
lea ecx, [ebp - 0x20]
mov dword [esp], eax
call fcn.00502270
sub esp, 4
jmp 0x4e1ec3
mov dword [ebp + 0x10], 0
jmp 0x4e1fb9
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e24e0
movzx ebx, word [eax]
cmp bx, 0xffff
jne 0x4e1f4a
mov dword [ebp + 8], 0
jmp 0x4e1f4a
lea edi, [ebp - 0x20]
jmp 0x4e1d29
mov dword [esp], 0x20
lea edi, [ebp - 0x20]
mov ecx, edi
call fcn.00501ed0
sub esp, 4
jmp 0x4e19d3
lea ecx, [ebp + 8]
call fcn.004b3f70
mov ebx, eax
mov eax, dword [ebp - 0x30]
movzx edx, word [eax + 0x72]
cmp dx, bx
je 0x4e242b
mov edi, dword [ebp - 0x30]
movzx eax, byte [edi + 0x10]
mov ecx, eax
cmp word [edi + 0x70], bx
je 0x4e236a
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x30]
xor edx, edx
test al, al
je 0x4e2150
cmp word [edi + 0x26], bx
je 0x4e22e0
cmp word [edi + 0x24], bx
je 0x4e22e0
cmp word [edi + 0x78], bx
jne 0x4e22e0
test dl, dl
je 0x4e21e0
mov ecx, dword [ebp + 8]
add dword [ebp - 0x34], 1
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], ecx
cmp eax, edx
jae 0x4e2290
add eax, 2
mov dword [ecx + 8], eax
mov ecx, 0xffffffff
mov word [ebp + 0xc], cx
cmp eax, edx
jae 0x4e22b8
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e22ca
cmp ax, 0xffff
mov ecx, dword [ebp + 0x10]
sete dl
cmp word [ebp + 0x14], 0xffff
sete al
mov byte [ebp - 0x2c], al
test ecx, ecx
je 0x4e21c5
test al, al
jne 0x4e2268
cmp dl, byte [ebp - 0x2c]
jne 0x4e2230
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x35], 1
jmp 0x4e19a8
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
lea ecx, [eax + 1]
mov dword [ebp - 0x2c], ecx
cmp dword [edx - 8], ecx
jb 0x4e21f7
mov edx, dword [edx - 4]
test edx, edx
jle 0x4e220d
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, esi
mov dword [esp], eax
call fcn.00501ed0
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
mov byte [edx + ecx], 0x30
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi]
mov dword [edx - 4], 0
mov dword [edx - 0xc], ecx
mov byte [edx + eax + 1], 0
jmp 0x4e2168
mov ecx, dword [ebp + 8]
mov ebx, 0xffffffff
test ecx, ecx
je 0x4e2255
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e249d
movzx ebx, word [eax]
cmp bx, 0xffff
je 0x4e244f
movzx eax, byte [edi + 0x10]
mov edx, 1
jmp 0x4e2142
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4e2410
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4e22f4
cmp ax, 0xffff
sete byte [ebp - 0x2c]
jmp 0x4e21c5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, 0xffffffff
mov word [ebp + 0xc], ax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
cmp eax, edx
jb 0x4e2197
lea esi, [esi]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp ax, 0xffff
jne 0x4e21a4
mov dword [ebp + 8], 0
jmp 0x4e21a4
mov byte [ebp - 0x2c], dl
jmp 0x4e19a8
movzx eax, byte [ebp - 0x2c]
mov byte [ebp - 0x3c], al
jmp 0x4e1c04
mov dword [ebp + 0x10], 0
jmp 0x4e227d
mov dword [ebp + 0x10], 0
jmp 0x4e2021
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x4e1f13
lea eax, [ebp - 0x21]
lea ecx, [ebx - 0xc]
mov dword [esp], eax
call fcn.00500760
sub esp, 4
jmp 0x4e1d67
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4e1faf
movzx eax, byte [ebp - 0x35]
or al, byte [ebp - 0x3c]
jne 0x4e1ae2
mov byte [ebp - 0x35], 1
mov ecx, esi
mov dword [esp], 0x2e
call fcn.00502270
mov byte [ebp - 0x3c], 0
sub esp, 4
jmp 0x4e1a47
movzx eax, byte [ebp - 0x2c]
mov byte [ebp - 0x3c], al
jmp 0x4e19f6
test al, al
je 0x4e2473
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x26], bx
je 0x4e23db
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x24], bx
je 0x4e23db
cmp dx, bx
setne dl
movzx edx, dl
lea edx, [edx + edx + 0x2b]
mov dword [esp], edx
mov ecx, esi
mov edi, 0xffffffff
call fcn.00502270
mov ecx, dword [ebp + 8]
sub esp, 4
call fcn.0052e110
lea eax, [ebp + 0x10]
mov word [ebp + 0xc], di
lea ecx, [ebp + 8]
mov dword [esp], eax
call fcn.004b3ed0
sub esp, 4
test al, al
je 0x4e24ec
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x35], al
mov dword [ebp - 0x34], 0
jmp 0x4e19a8
mov eax, ecx
jmp 0x4e2136
movzx eax, byte [ebp - 0x2c]
mov byte [ebp - 0x3c], al
jmp 0x4e1c11
mov eax, 0x2b
jmp 0x4e1b6c
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [eax - 0xc]
lea edi, [ebp - 0x20]
test eax, eax
jne 0x4e1d29
jmp 0x4e1d4f
mov eax, dword [ecx]
mov byte [ebp - 0x2c], dl
call dword [eax + 0x24]
movzx edx, byte [ebp - 0x2c]
jmp 0x4e2277
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4e2017
mov edi, eax
movzx eax, byte [eax + 0x10]
mov ecx, eax
test al, al
jne 0x4e2372
mov edx, 0x2b
cmp word [edi + 0x24], bx
jne 0x4e2391
jmp 0x4e2136
mov dword [ebp + 8], 0
jmp 0x4e2255
mov dword [ebp + 8], 0
jmp 0x4e1e6c
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
jmp 0x4e1aba
mov edi, dword [ebp - 0x30]
mov edx, 0x2d
cmp bx, word [edi + 0x24]
jne 0x4e2391
jmp 0x4e2136
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx - 0xc]
test edx, edx
jne 0x4e1d12
jmp 0x4e1d4f
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
jmp 0x4e224b
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
jmp 0x4e1e62
mov dword [esp + 8], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.005020d0
mov byte [ebp - 0x3c], 0
sub esp, 0xc
jmp 0x4e1cf2
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
jmp 0x4e20d2
lea ecx, [ebp + 8]
call fcn.004b3f70
mov ebx, eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x10]
jmp 0x4e2136
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x21]
mov dword [esp], eax
call fcn.00500780
push ecx
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x5ec348]
je 0x4e2528
call fcn.00497000
mov ebx, eax
jmp 0x4e2502
mov dword [esp], ebx
call fcn.00494760
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x88]
mov edx, dword [0x5ec348]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov edx, dword [edx + 0x30]
cmp edx, 0x4e2a00
jne 0x4e2610
mov ebp, dword [esi + 0xc]
mov edx, ebp
and edx, 0xffffffb5
or edx, 8
mov dword [esi + 0xc], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ebx
xor bx, bx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004df010
sub esp, 0x1c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov eax, edx
mov dword [esp + 0x3c], ecx
movzx edx, word [esp + 0x3c]
mov dword [esi + 0xc], ebp
or ebx, edx
mov edx, dword [esp + 0x48]
mov dword [edi], edx
mov edx, dword [esp + 0x4c]
sub edx, dword [0x5ec348]
jne 0x4e2656
add esp, 0x5c
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov ebp, dword [esp + 0x4c]
sub ebp, dword [0x5ec348]
jne 0x4e2656
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], eax
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp edx
call fcn.00497000
nop
nop
nop
nop
nop
mov eax, dword [ecx]
jmp dword [eax + 8]