Function at 0x4d70f0
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.004b1050
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.004b3dd0
mov byte [ebp - 0x35], al
sub esp, 4
test al, al
je 0x4d78a0
mov dword [ebp - 0x34], 0
xor ebx, ebx
mov byte [ebp - 0x30], 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 - 0x2c]
cmp byte [eax + 0x10], 0
jne 0x4d7880
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x64]
mov byte [ebp - 0x36], al
test al, al
jne 0x4d7350
cmp byte [ebp - 0x35], 0
jne 0x4d7bc6
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x3c], 0
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x4d7253
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x30], edi
add edi, 1
cmp dword [eax - 8], edi
jb 0x4d71b9
mov eax, dword [eax - 4]
test eax, eax
jle 0x4d71c6
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 edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov byte [ebp - 0x30], 1
mov dword [eax - 4], 0
mov dword [eax - 0xc], edi
mov byte [eax + edx + 1], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x4d7308
add eax, 1
mov dword [ebp + 0xc], 0xffffffff
xor edi, edi
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x4d7330
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0xffffffff
sete al
test ecx, ecx
je 0x4d7224
test al, al
jne 0x4d76e0
mov ecx, edi
cmp cl, al
je 0x4d7446
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d7768
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4d774b
movzx ebx, byte [eax]
lea eax, [ebx - 0x30]
cmp al, 9
jbe 0x4d71a2
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x24], bl
je 0x4d7779
nop
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x5c], bl
je 0x4d7271
cmp byte [eax + 0x62], bl
jne 0x4d7446
movzx eax, byte [ebp - 0x35]
xor eax, 1
and byte [ebp - 0x30], al
je 0x4d7446
mov dword [esp], 0x65
mov ecx, esi
call fcn.00502270
mov ecx, dword [ebp + 8]
sub esp, 4
call fcn.0052d650
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0xffffffff
lea ecx, [ebp + 8]
mov dword [esp], eax
call fcn.004b3dd0
sub esp, 4
test al, al
jne 0x4d7b74
lea ecx, [ebp + 8]
call fcn.004b3e80
mov edi, dword [ebp - 0x2c]
mov ebx, eax
cmp byte [edi + 0x4b], al
je 0x4d7b58
cmp al, byte [edi + 0x4a]
jne 0x4d7ab0
mov eax, 0x2d
mov dword [esp], eax
mov ecx, esi
call fcn.00502270
movzx eax, byte [ebp - 0x30]
mov ebx, dword [ebp + 8]
sub esp, 4
mov byte [ebp - 0x35], al
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
cmp eax, edx
jb 0x4d71f7
lea esi, cs:[esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xc], 0xffffffff
xor edi, edi
cmp eax, edx
jb 0x4d720e
lea esi, cs:[esi]
nop
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, 0xffffffff
je 0x4d7c52
cmp eax, 0xffffffff
sete al
mov edi, eax
jmp 0x4d720e
cmp byte [ebp - 0x35], 0
jne 0x4d7bc6
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x3c], 0
lea edi, [eax + 0x4e]
movzx eax, byte [eax + 0x10]
mov dword [ebp - 0x40], edi
nop
test al, al
je 0x4d7380
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x25], bl
je 0x4d7710
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x24], bl
je 0x4d74e0
movsx eax, bl
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x40]
mov dword [esp], edi
call sub.msvcrt.dll_memchr
test eax, eax
je 0x4d75d0
sub eax, edi
lea ebx, [eax + 0x30]
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x30], edx
lea edi, [edx + 1]
cmp dword [eax - 8], edi
jb 0x4d73ca
mov eax, dword [eax - 4]
test eax, eax
jle 0x4d73d7
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 - 0x30]
mov dword [eax - 4], 0
mov byte [eax + edi + 1], 0
movzx eax, byte [ebp - 0x36]
mov byte [ebp - 0x30], al
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x4d755e
add eax, 1
mov dword [ebp + 0xc], 0xffffffff
xor edi, edi
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x4d7580
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0xffffffff
sete al
test ecx, ecx
je 0x4d743c
test al, al
jne 0x4d77a8
mov edx, edi
cmp dl, al
jne 0x4d75a0
mov eax, dword [ebp - 0x20]
mov esi, dword [eax - 0xc]
mov ebx, eax
test esi, esi
je 0x4d74a3
cmp byte [ebp - 0x3c], 0
jne 0x4d7878
cmp byte [ebp - 0x35], 0
jne 0x4d7878
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 - 0x2c]
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 0x4d74a3
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 0x4d7a90
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x5ec348]
jne 0x4d7c87
lea esp, [ebp - 0xc]
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
movzx ebx, byte [ebp - 0x3c]
or byte [ebp - 0x35], bl
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 0xc]
jne 0x4d7b77
test edx, edx
je 0x4d750b
movsx eax, byte [ebp - 0x34]
lea edi, [ebp - 0x20]
mov ecx, edi
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 0x4d751f
mov eax, dword [eax - 4]
test eax, eax
jle 0x4d752c
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 - 0x3c], al
mov eax, dword [ebx + 8]
cmp eax, edx
jb 0x4d740f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xc], 0xffffffff
xor edi, edi
cmp eax, edx
jb 0x4d7426
lea esi, [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, 0xffffffff
je 0x4d7c5e
cmp eax, 0xffffffff
sete al
mov edi, eax
jmp 0x4d7426
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d77d8
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4d7bd9
movzx ebx, byte [eax]
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x10]
jmp 0x4d7370
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x5c], bl
je 0x4d75e1
cmp byte [eax + 0x62], bl
jne 0x4d7446
movzx edx, byte [ebp - 0x35]
mov eax, dword [ebp - 0x20]
xor edx, 1
and byte [ebp - 0x30], dl
mov ecx, dword [eax - 0xc]
je 0x4d7449
test ecx, ecx
je 0x4d7605
cmp byte [ebp - 0x3c], 0
je 0x4d7840
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea ebx, [edi + 1]
cmp dword [eax - 8], ebx
jb 0x4d7619
mov eax, dword [eax - 4]
test eax, eax
jle 0x4d7626
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 0x4d7a80
add eax, 1
mov dword [ecx + 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0xffffffff
lea ecx, [ebp + 8]
mov dword [esp], eax
call fcn.004b3dd0
sub esp, 4
test al, al
jne 0x4d7b74
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x4d7688
test ecx, ecx
jne 0x4d7860
mov eax, dword [ebp - 0x2c]
movzx edx, byte [eax + 0x4b]
movzx eax, byte [eax + 0x10]
cmp dl, bl
je 0x4d77e8
mov edi, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], bl
jne 0x4d7830
test al, al
jne 0x4d7808
mov eax, dword [ebp - 0x2c]
cmp bl, byte [eax + 0x24]
je 0x4d7b68
mov eax, 0x2d
mov dword [esp], eax
mov ecx, esi
call fcn.00502270
movzx eax, byte [ebp - 0x30]
sub esp, 4
mov byte [ebp - 0x35], al
jmp 0x4d73fe
mov ebx, dword [ecx + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
jb 0x4d7224
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0xffffffff
sete al
jne 0x4d7224
mov dword [ebp + 0x10], 0
jmp 0x4d7224
movzx ecx, byte [ebp - 0x35]
or byte [ebp - 0x3c], cl
jne 0x4d7b74
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4d7bf5
movsx eax, al
lea edi, [ebp - 0x20]
mov dword [esp], eax
mov ecx, edi
call fcn.00502270
mov byte [ebp - 0x35], 0
sub esp, 4
mov dword [ebp - 0x34], 0
jmp 0x4d73fe
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d7197
mov dword [ebp + 8], 0
lea esi, [esi]
mov eax, dword [ebp - 0x2c]
mov ebx, 0xffffffff
cmp byte [eax + 0x24], bl
jne 0x4d7260
movzx eax, byte [ebp - 0x3c]
or al, byte [ebp - 0x35]
jne 0x4d7260
mov byte [ebp - 0x3c], 1
mov ecx, esi
mov dword [esp], 0x2e
call fcn.00502270
mov byte [ebp - 0x35], 0
sub esp, 4
jmp 0x4d71e6
mov ebx, dword [ecx + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
jb 0x4d743c
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0xffffffff
sete al
jne 0x4d743c
mov dword [ebp + 0x10], 0
jmp 0x4d743c
mov ebx, 0xffffffff
jmp 0x4d75ba
test al, al
jne 0x4d7808
mov eax, dword [ebp - 0x2c]
cmp bl, byte [eax + 0x24]
je 0x4d7b68
mov eax, 0x2b
jmp 0x4d76c0
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x25], bl
je 0x4d7a70
cmp byte [eax + 0x24], bl
je 0x4d7a70
xor eax, eax
cmp dl, bl
setne al
lea eax, [eax + eax + 0x2b]
jmp 0x4d76c0
movzx ecx, byte [ebp - 0x30]
mov byte [ebp - 0x35], cl
jmp 0x4d7370
movsx eax, byte [ebp - 0x34]
lea edi, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.00502270
sub esp, 4
jmp 0x4d7605
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4d7c20
movzx ebx, byte [eax]
jmp 0x4d7688
lea edi, [ebp - 0x20]
jmp 0x4d747d
mov dword [esp], 0x20
lea edi, [ebp - 0x20]
mov ecx, edi
call fcn.00501ed0
sub esp, 4
jmp 0x4d7173
lea ecx, [ebp + 8]
call fcn.004b3e80
mov edx, eax
mov ebx, eax
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 0x4b]
cmp cl, dl
je 0x4d7b8c
mov edi, dword [ebp - 0x2c]
movzx eax, byte [edi + 0x10]
mov byte [ebp - 0x30], al
cmp byte [edi + 0x4a], dl
je 0x4d7adf
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x2c]
xor edx, edx
test al, al
je 0x4d78e7
cmp byte [edi + 0x25], bl
je 0x4d7a60
cmp byte [edi + 0x24], bl
je 0x4d7a60
cmp byte [edi + 0x4e], bl
jne 0x4d7a60
test dl, dl
je 0x4d7960
mov ecx, dword [ebp + 8]
add dword [ebp - 0x34], 1
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x30], ecx
cmp eax, edx
jae 0x4d79f0
add eax, 1
mov dword [ebp + 0xc], 0xffffffff
mov dword [ecx + 8], eax
cmp eax, edx
jae 0x4d7a18
mov byte [ebp - 0x30], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0xffffffff
sete al
test ecx, ecx
setne dl
and dl, al
jne 0x4d79d8
cmp byte [ebp - 0x30], al
jne 0x4d79b0
mov byte [ebp - 0x30], 1
mov byte [ebp - 0x35], 1
jmp 0x4d7148
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
lea ecx, [eax + 1]
mov dword [ebp - 0x30], ecx
cmp dword [edx - 8], ecx
jb 0x4d7977
mov edx, dword [edx - 4]
test edx, edx
jle 0x4d798d
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
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 - 0x30]
mov edx, dword [esi]
mov dword [edx - 4], 0
mov dword [edx - 0xc], ecx
mov byte [edx + eax + 1], 0
jmp 0x4d78fd
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d7a50
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x4d7a39
movzx ebx, byte [eax]
movzx eax, byte [edi + 0x10]
mov edx, 1
jmp 0x4d78da
mov eax, dword [ecx + 0xc]
cmp dword [ecx + 8], eax
jae 0x4d7abc
xor eax, eax
jmp 0x4d7945
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x28]
mov edx, dword [ebp - 0x30]
mov dword [ebp + 0xc], 0xffffffff
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
cmp eax, edx
jb 0x4d792a
lea esi, [esi]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0xffffffff
jne 0x4d792a
mov dword [ebp + 8], 0
mov byte [ebp - 0x30], 1
jmp 0x4d792e
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d79c6
mov dword [ebp + 8], 0
lea esi, [esi]
mov ebx, 0xffffffff
jmp 0x4d79c6
mov byte [ebp - 0x30], dl
jmp 0x4d7148
movzx eax, byte [ebp - 0x30]
mov byte [ebp - 0x35], al
jmp 0x4d7374
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x4d7655
lea eax, [ebp - 0x21]
lea ecx, [ebx - 0xc]
mov dword [esp], eax
call fcn.00500760
sub esp, 4
jmp 0x4d74bb
movzx eax, byte [ebp - 0x30]
mov byte [ebp - 0x35], al
jmp 0x4d7197
mov eax, dword [ecx]
mov byte [ebp - 0x3c], dl
call dword [eax + 0x24]
movzx edx, byte [ebp - 0x3c]
cmp eax, 0xffffffff
jne 0x4d79e4
mov dword [ebp + 0x10], 0
mov eax, edx
jmp 0x4d7945
test al, al
je 0x4d7bb0
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x25], dl
je 0x4d7b4b
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 0x24], dl
je 0x4d7b4b
cmp cl, dl
setne cl
movzx ecx, cl
lea ecx, [ecx + ecx + 0x2b]
mov dword [esp], ecx
mov ecx, esi
call fcn.00502270
mov ecx, dword [ebp + 8]
sub esp, 4
call fcn.0052d650
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0xffffffff
lea ecx, [ebp + 8]
mov dword [esp], eax
call fcn.004b3dd0
sub esp, 4
test al, al
je 0x4d7c3c
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x35], al
mov dword [ebp - 0x34], 0
jmp 0x4d7148
movzx eax, byte [ebp - 0x30]
jmp 0x4d78ce
mov eax, 0x2b
jmp 0x4d72de
movzx eax, byte [ebp - 0x30]
mov byte [ebp - 0x35], al
jmp 0x4d7380
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [eax - 0xc]
lea edi, [ebp - 0x20]
test eax, eax
jne 0x4d747d
jmp 0x4d74a3
mov edi, eax
movzx eax, byte [eax + 0x10]
mov byte [ebp - 0x30], al
test al, al
jne 0x4d7ae7
mov ecx, 0x2b
cmp byte [edi + 0x24], dl
jne 0x4d7b03
jmp 0x4d78ce
mov edi, dword [ebp - 0x2c]
mov ecx, 0x2d
cmp byte [edi + 0x24], dl
jne 0x4d7b03
jmp 0x4d78ce
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx - 0xc]
test edx, edx
jne 0x4d7466
jmp 0x4d74a3
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d75ba
mov dword [ebp + 8], 0
jmp 0x4d75ba
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 - 0x35], 0
sub esp, 0xc
jmp 0x4d7446
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d7688
mov dword [ebp + 8], 0
jmp 0x4d7688
lea ecx, [ebp + 8]
call fcn.004b3e80
mov ebx, eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x10]
jmp 0x4d78ce
mov dword [ebp + 8], 0
jmp 0x4d7340
mov dword [ebp + 8], 0
jmp 0x4d7590
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 0x4d7c90
call fcn.00497000
mov ebx, eax
jmp 0x4d7c6a
mov dword [esp], ebx
call fcn.00494760
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [0x5ec348]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], esi
mov eax, dword [eax + 0x30]
cmp eax, 0x4d8140
jne 0x4d7d50
mov esi, dword [ebx + 0xc]
mov edi, dword [esp + 0x20]
mov eax, esi
and eax, 0xffffffb5
or eax, 8
mov dword [ebx + 0xc], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004d4b30
mov dword [ebx + 0xc], esi
sub esp, 0x1c
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, dword [0x5ec348]
jne 0x4d7d91
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov esi, dword [esp + 0x3c]
sub esi, dword [0x5ec348]
jne 0x4d7d91
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.00497000
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ecx]
jmp dword [eax + 8]