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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xe0]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xe4]
mov edx, dword [ecx]
call dword [edx + 0x14]
xor ebx, ebx
mov dword [esi + 0xdc], ebx
mov eax, dword [0x5a3410]
cmp eax, ebx
je 0x4dfacd
push str.PACHISI:_NOT_ready_for_messages_n
call fcn.004f07d0
add esp, 4
push ebx
push ebx
mov ecx, esi
call fcn.004dd980
mov edi, dword [esp + 0x28]
movsx eax, byte [edi]
add eax, 0xffffffdb
cmp eax, 4
ja case.default.0x4dfae9
jmp dword [eax*4 + 0x4e0398]
cmp dword [0x5a3410], ebx
je case.default.0x4dfae9
mov eax, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x10], ebp
xor edx, edx
lea ecx, [esp + 0x14]
mov ebx, 4
cmp edx, 3
ja case.default.0x4dfb16
jmp dword [edx*4 + 0x4e03ac]
mov ax, word [edi + 2]
jmp case.default.0x4dfb16
mov ax, word [edi + 4]
jmp case.default.0x4dfb16
mov ax, word [edi + 6]
jmp case.default.0x4dfb16
mov ax, word [edi + 8]
cmp ax, 0xffff
je 0x4dfb3a
inc ebp
mov word [ecx], ax
inc edx
add ecx, 2
dec ebx
jne 0x4dfb11
mov dword [esp + 0x10], ebp
xor edi, edi
mov ecx, dword [esp + 0x10]
lea ebp, [esp + 0x14]
lea ebx, [esi + 0x14]
cmp di, cx
jge 0x4dfb65
mov eax, dword [ebx]
mov dword [eax + 0x24], 1
jmp 0x4dfb6e
mov edx, dword [ebx]
mov dword [edx + 0x24], 0
mov ax, word [ebp]
cmp ax, 0x64
jl 0x4dfb8f
mov ecx, dword [ebx]
push 0
movsx eax, ax
mov ecx, dword [ecx + 0xc]
sub eax, 0x64
push eax
call fcn.0047c390
mov ecx, dword [esp + 0x10]
inc edi
add ebx, 4
add ebp, 2
cmp di, 4
jl 0x4dfb55
movsx eax, cx
sub eax, 2
mov word [esi + 8], cx
je 0x4dfbeb
dec eax
je 0x4dfbcd
dec eax
jne 0x4dfc0f
mov edi, 1
add esi, 0x18
mov ebx, 3
mov ecx, dword [esi]
push edi
push edi
call fcn.004e1dd0
inc edi
add esi, 4
dec ebx
jne 0x4dfbbb
jmp 0x4dfc0f
mov ecx, dword [esi + 0x18]
push 1
push 1
call fcn.004e1dd0
mov ecx, dword [esi + 0x1c]
push 2
push 3
call fcn.004e1dd0
push 3
push 2
jmp 0x4dfc07
mov ecx, dword [esi + 0x18]
push 1
push 2
call fcn.004e1dd0
mov ecx, dword [esi + 0x1c]
push 2
push 1
call fcn.004e1dd0
push 3
push 3
mov ecx, dword [esi + 0x20]
call fcn.004e1dd0
mov edx, dword [esp + 0x28]
mov ecx, dword [0x5a3410]
movsx eax, word [edx + 0xa]
mov ecx, dword [ecx + 8]
push eax
call fcn.004898f0
mov edx, dword [0x5a2f7c]
push 0
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x5a2f7c]
push 0x3c
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [esi + 0x48], ebx
mov eax, dword [0x5a2f7c]
push 0xffffffffffffffff
push ebx
mov ecx, dword [eax + 0x908]
push 0xffffffffffffffff
push 0xbd4
call fcn.004b8aa0
movsx ecx, word [edi + 2]
push ecx
mov ecx, dword [esi + 0xbc]
call fcn.004e1bd0
movsx edx, word [esi + 0xa]
mov cx, word [edi + 2]
push ebx
mov eax, dword [esi + edx*4 + 0x14]
push ebx
mov word [eax + 0x20], cx
mov ecx, esi
call fcn.004dd980
mov edx, dword [0x5a2f7c]
push 1
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x5a2f7c]
push 0x78
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov eax, dword [0x5a2f7c]
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
mov ecx, dword [eax + 0x908]
push 0xbbf
call fcn.004b8aa0
movsx ecx, word [edi + 2]
push ecx
mov ecx, dword [esi + 0xbc]
call fcn.004e1bd0
movsx edx, word [edi + 4]
mov ecx, dword [esi + 0xc0]
push edx
call fcn.004e1bd0
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xc0]
inc word [esi + 0xc]
mov dx, word [esi + 0xc]
mov word [esi + 0x24], 0xffff
mov eax, dword [eax + 0x6c]
mov ecx, dword [ecx + 0x6c]
cmp eax, ecx
jne 0x4dfd49
cmp dx, 4
jne 0x4dfd45
cmp dword [esi + 0x10], ebx
je 0x4dfd45
mov word [esi + 0xc], bx
mov edx, dword [0x5a2f7c]
push 5
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x4dfd5d
cmp eax, ecx
je 0x4dfd4d
mov word [esi + 0xc], bx
mov ecx, dword [0x5a2f7c]
push 3
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 0x10]
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + eax*4 + 0x14]
push ecx
mov ecx, dword [0x5a3420]
call fcn.0050ef00
test ax, ax
je 0x4dfd7a
xor edi, edi
jmp 0x4dfd89
mov ecx, dword [0x5a32bc]
push 1
call fcn.004f3b60
mov edi, eax
movsx edx, word [esi + 0xa]
mov eax, dword [esi + edx*4 + 0x14]
mov ecx, dword [eax + 0xc]
call fcn.0047e230
cmp eax, ebx
je 0x4dfdbc
mov ecx, dword [0x5a2f7c]
movsx eax, di
mov ecx, dword [ecx + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [0x5a32bc]
push 1
call fcn.004f3b60
mov ecx, dword [0x5a2f7c]
push eax
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov ax, word [edi + 4]
mov bp, word [edi + 2]
mov word [esp + 0x10], ax
xor ebx, ebx
or eax, 0xffffffff
cmp bp, bx
mov dword [esp + 0x28], ebx
mov word [esi + 0x38], bp
mov word [esi + 0x40], ax
mov word [esi + 0x42], ax
jge 0x4dfead
mov eax, dword [esi + 0xbc]
mov edi, dword [eax + 0x6c]
cmp edi, 5
jne 0x4dfe31
mov cx, word [eax + 0x6c]
mov word [esi + 0x40], cx
mov dword [eax + 0x6c], ebx
mov ecx, dword [esi + 0xbc]
jmp 0x4dfe80
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx + 0x6c]
cmp edx, 5
jne 0x4dfe4c
mov ax, word [ecx + 0x6c]
mov word [esi + 0x42], ax
mov dword [ecx + 0x6c], ebx
jmp 0x4dfe7a
add edx, edi
cmp edx, 5
jne 0x4dfe85
mov dx, word [eax + 0x6c]
mov word [esi + 0x40], dx
mov cx, word [ecx + 0x6c]
mov word [esi + 0x42], cx
mov dword [eax + 0x6c], ebx
mov ecx, dword [esi + 0xbc]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi + 0xc0]
mov dword [eax + 0x6c], ebx
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0x14]
push ebp
mov ecx, esi
call fcn.0050ea00
cmp eax, ebx
mov dword [esp + 0x28], eax
je case.default.0x4dfae9
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + eax*4 + 0x14]
movsx edx, word [ecx + 0xa]
mov bp, word [edx*2 + 0x576d38]
cmp word [esp + 0x10], 0x3e8
jl 0x4dfee1
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + eax*4 + 0x14]
mov ax, word [ecx + 0xa]
mov ecx, esi
push eax
movsx eax, ax
mov edx, eax
shl edx, 3
sub edx, eax
mov ax, word [edx*2 + 0x576cd4]
push eax
push ebp
call fcn.0050eda0
inc eax
jmp 0x4dfefb
movsx ecx, word [esi + 0xa]
mov edx, dword [esi + ecx*4 + 0x14]
mov ecx, dword [esp + 0x10]
mov ax, word [edx + 0xa]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.0050eda0
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
movsx eax, ax
mov edi, dword [ecx + 0x6c]
cmp eax, edi
jne 0x4dff2e
cmp word [esi + 0x40], 0xffff
jne 0x4dff1e
mov dx, word [ecx + 0x6c]
mov word [esi + 0x40], dx
mov dword [ecx + 0x6c], ebx
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4dff9c
mov ebx, dword [esi + 0xc0]
mov edx, dword [ebx + 0x6c]
cmp eax, edx
jne 0x4dff53
cmp word [esi + 0x42], 0xffff
jne 0x4dff4a
mov cx, word [ebx + 0x6c]
mov word [esi + 0x42], cx
mov dword [ebx + 0x6c], 0
jmp 0x4dff91
add edx, edi
cmp eax, edx
jne 0x4dff9c
or eax, 0xffffffff
cmp word [esi + 0x40], ax
jne 0x4dff6a
mov dx, word [ecx + 0x6c]
mov word [esi + 0x40], dx
cmp word [esi + 0x42], ax
jne 0x4dff78
mov ax, word [ebx + 0x6c]
mov word [esi + 0x42], ax
xor edi, edi
mov dword [ecx + 0x6c], edi
mov ecx, dword [esi + 0xbc]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi + 0xc0]
mov dword [eax + 0x6c], edi
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x4dffba
push ebp
mov ecx, esi
call fcn.0050ea00
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je case.default.0x4dfae9
mov edi, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.0050ea00
test eax, eax
mov dword [esi + 0xcc], eax
je 0x4e000f
movsx ecx, word [esi + 0xa]
mov edx, dword [eax + 0x88]
cmp edx, dword [esi + ecx*4 + 0x14]
jne 0x4dffec
mov dword [esi + 0xcc], 0
jmp 0x4e000f
cmp word [esi + 0x42], 0xffff
jne 0x4dfffb
mov ecx, dword [esi + 0xbc]
jmp 0x4e0001
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x6c]
test eax, eax
jne 0x4e000f
push 0x14
call fcn.004e1bd0
mov eax, dword [esi + 0xcc]
mov cx, word [esi + 0x24]
mov dx, word [esi + 0x26]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], eax
mov word [esi + 0x44], cx
mov word [esi + 0x46], dx
cmp di, 0x3e8
mov word [ebx + 0x8c], di
jl 0x4e006e
mov eax, dword [ebx]
push 0xd2
mov ecx, ebx
call dword [eax + 0x10]
cmp word [esi + 0x42], 0xffff
mov dword [esi + 0xd0], ebx
jne 0x4e005a
mov ecx, dword [esi + 0xbc]
jmp 0x4e0060
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x6c]
test eax, eax
jne 0x4e006e
push 0xa
call fcn.004e1bd0
push ebp
mov ecx, esi
call fcn.0050ea00
test eax, eax
je 0x4e00a3
mov eax, dword [esp + 0x14]
cmp ax, 1
jl 0x4e00a3
cmp ax, 6
jg 0x4e00a3
push ebp
mov ecx, esi
call fcn.0050ea00
mov cx, word [eax + 0x84]
mov word [esi + 0x26], di
mov word [esi + 0x24], cx
jmp 0x4e00a9
mov word [esi + 0x24], 0xffff
mov edx, dword [0x5a2f7c]
push 8
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [0x5a3410]
test eax, eax
jne 0x4e00cc
mov eax, 1
jmp 0x4e01ed
movsx edi, word [esi + 0xa]
mov ecx, dword [esi + edi*4 + 0x14]
mov ecx, dword [ecx + 0xc]
call fcn.0047e230
test eax, eax
mov eax, dword [0x5a3410]
mov ebp, 3
jne 0x4e00ef
or ecx, 0xffffffff
jmp 0x4e0124
cmp edi, ebp
ja case.0x4e00f3.0
jmp dword [edi*4 + 0x4e03bc]
mov ecx, 1
jmp 0x4e0124
mov edx, dword [eax + 8]
xor ecx, ecx
cmp dword [edx + 8], 2
setne cl
inc ecx
jmp 0x4e0124
mov ecx, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 8], ebp
setne dl
add edx, 2
mov ecx, edx
jmp 0x4e0124
xor ecx, ecx
cmp cx, 0xffff
je 0x4e0153
movsx edi, cx
mov ecx, dword [eax + 8]
push edi
call fcn.00489bf0
test eax, eax
mov eax, dword [0x5a3410]
je 0x4e0153
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edi*4 + 0x254]
test edx, edx
jne 0x4e0153
mov di, word [esi + 0xa]
jmp 0x4e0182
xor edi, edi
mov ecx, dword [eax + 8]
movsx ebx, di
push ebx
call fcn.00489bf0
test eax, eax
mov eax, dword [0x5a3410]
je 0x4e0178
mov edx, dword [eax + 8]
mov ecx, dword [edx + ebx*4 + 0x254]
test ecx, ecx
je 0x4e0182
inc edi
cmp di, 8
jl 0x4e0155
or edi, 0xffffffff
movsx edi, di
mov eax, dword [esi + edi*4 + 0x14]
mov ecx, dword [eax + 0xc]
call fcn.0047e230
mov ecx, dword [0x5a3410]
test eax, eax
jne 0x4e01a0
or eax, 0xffffffff
jmp 0x4e01d5
cmp edi, ebp
ja case.0x4e01a4.0
jmp dword [edi*4 + 0x4e03cc]
mov eax, 1
jmp 0x4e01d5
mov edx, dword [ecx + 8]
xor eax, eax
cmp dword [edx + 8], 2
setne al
inc eax
jmp 0x4e01d5
mov eax, dword [ecx + 8]
xor edx, edx
cmp dword [eax + 8], ebp
setne dl
add edx, 2
mov eax, edx
jmp 0x4e01d5
xor eax, eax
mov ecx, dword [ecx + 8]
mov ebx, dword [esp + 0x28]
movsx edx, ax
mov edi, dword [ecx + 0xc]
xor eax, eax
cmp edi, edx
mov edi, dword [esp + 0x10]
sete al
test eax, eax
je 0x4e0222
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + eax*4 + 0x14]
mov ecx, dword [ecx + 0xc]
call fcn.0047e230
test eax, eax
je 0x4e0222
mov edx, dword [0x5a2f7c]
push 0
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
cmp di, 0x3e8
jl 0x4e025b
movsx ecx, word [esi + 0xa]
movsx eax, di
mov edx, dword [esi + ecx*4 + 0x14]
mov ebp, 0xa
movsx ecx, word [edx + 0xa]
cdq
idiv ebp
lea edx, [edx + ecx*4]
mov eax, dword [edx*8 + 0x576928]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx*8 + 0x57692c]
mov dword [esp + 0x20], ecx
jmp 0x4e02ae
cmp di, 0x64
jle 0x4e0295
movsx edx, word [esi + 0xa]
mov ebp, 0xa
mov eax, dword [esi + edx*4 + 0x14]
movsx eax, word [eax + 0xa]
mov ecx, eax
shl ecx, 3
sub ecx, eax
movsx eax, di
cdq
idiv ebp
add ecx, edx
mov edx, dword [ecx*8 + 0x576bc0]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx*8 + 0x576bc4]
jmp 0x4e02aa
movsx ecx, di
mov edx, dword [ecx*8 + 0x5769a8]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx*8 + 0x5769ac]
mov dword [esp + 0x20], eax
cmp di, 0x3e8
jge 0x4e02d6
mov ax, word [ebx + 0x84]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
mov cx, word [esi + 0xa]
push edx
push 1
push edi
push eax
push ecx
mov ecx, esi
call fcn.004de4d0
mov ecx, dword [0x5a32bc]
call fcn.004f3af0
cdq
sub eax, edx
push 0x30
sar eax, 1
mov dword [ebx + 0x78], eax
call fcn.004d8630
add esp, 4
test eax, eax
je 0x4e0327
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [0x5a2f7c]
push ecx
mov ecx, dword [edx + 8]
push ecx
mov ecx, eax
call fcn.004f2b30
push eax
mov ecx, ebx
call fcn.00485230
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
xor eax, eax
mov ecx, ebx
push eax
call fcn.00485230
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [0x5a3420]
push 0x96
mov ecx, dword [edx + 0xbc]
call fcn.004b6040
mov eax, dword [0x5a3420]
push 0x96
mov ecx, dword [eax + 0xc0]
call fcn.004b6040
mov ecx, dword [0x5a2f7c]
push 0xe
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, dword [0x5a2f7c]
push 0x78
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x14
ret 4