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

Disassembly:
push 0xffffffffffffffff
push 0x56b746
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x5ac8d0]
mov dl, byte [0x5ac8d6]
push ebx
push ebp
push esi
mov esi, ecx
mov cx, word [0x5ac8d4]
push edi
mov word [esp + 0x28], cx
xor edi, edi
push 6
push 0x5ad200
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x32], dl
mov dword [esp + 0x40], edi
call fcn.005318a0
mov al, byte [esi + 0xc]
mov dword [esp + 0xa8], edi
mov byte [esp + 0x25], al
cmp al, 0xf4
mov al, byte [esi + 4]
jne 0x4d93ce
test al, al
mov al, byte [esp + 0xb0]
jne 0x4d93b2
cmp al, 1
jne 0x4d93a6
mov byte [esp + 0x28], 0
mov byte [esp + 0x14], 0
jmp 0x4d940f
mov byte [esp + 0x28], 3
mov byte [esp + 0x14], 1
jmp 0x4d940f
cmp al, 1
jne 0x4d93c2
mov byte [esp + 0x28], 4
mov byte [esp + 0x14], 4
jmp 0x4d940f
mov byte [esp + 0x28], 3
mov byte [esp + 0x14], 5
jmp 0x4d940f
test al, al
mov al, byte [esp + 0xb0]
jne 0x4d93f5
cmp al, 1
jne 0x4d93e9
mov byte [esp + 0x28], 1
mov byte [esp + 0x14], 2
jmp 0x4d940f
mov byte [esp + 0x28], 7
mov byte [esp + 0x14], 3
jmp 0x4d940f
cmp al, 1
jne 0x4d9405
mov byte [esp + 0x28], 3
mov byte [esp + 0x14], 6
jmp 0x4d940f
mov byte [esp + 0x28], 7
mov byte [esp + 0x14], 7
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0x78]
call fcn.0043c6b0
cmp ax, di
mov dword [esp + 0x2c], eax
jne 0x4d948a
push edi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0xb8], 1
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0xb8], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x4d9c31
mov esi, dword [esp + 0xb4]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
cmp ebx, ebx
mov ebp, ebx
je 0x4d94bb
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
call fcn.00531810
mov ecx, edi
call fcn.005319b0
add ebp, 4
add edi, 4
cmp ebp, ebx
jne 0x4d949d
mov ebp, dword [esi + 8]
mov ebx, edi
cmp edi, ebp
je 0x4d94d2
mov ecx, ebx
call fcn.00531940
add ebx, 4
cmp ebx, ebp
jne 0x4d94c4
mov eax, dword [esp + 0x14]
mov dword [esi + 8], edi
and eax, 0xff
cmp eax, 7
ja case.default.0x4d94e7
jmp dword [eax*4 + 0x4d9c4c]
mov ebp, 0x2b
cmp bp, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx edx, bp
mov al, byte [esp + edx + 0x3b]
lea edx, [esp + edx + 0x3b]
test al, al
mov dword [esp + 0x18], edx
je 0x4d956f
xor ebx, ebx
xor edi, edi
mov al, byte [edx]
mov cl, bl
shr al, cl
test al, 1
je 0x4d9567
lea ecx, [ebp - 0x2b]
movsx eax, cx
mov al, byte [edi + eax*8 + 0x57c878]
test al, al
mov byte [esp + 0x14], al
je 0x4d9567
push 0
push 4
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov ecx, dword [esp + 0x14]
push ecx
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404e90
mov edx, dword [esp + 0x18]
inc ebx
inc edi
cmp bx, 8
jl 0x4d9515
inc ebp
lea eax, [ebp - 0x2b]
cmp ax, 9
jl 0x4d94f3
jmp case.default.0x4d94e7
mov ebx, 7
cmp bx, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx ecx, bx
mov al, byte [esp + ecx + 0x3b]
lea edi, [esp + ecx + 0x3b]
test al, al
je 0x4d95ce
push 1
push 4
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov dl, byte [edi]
lea ecx, [esp + 0x10]
push edx
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00404e90
add ebx, 0xa
cmp bx, 0x2f
jl 0x4d9587
jmp case.default.0x4d94e7
mov ebp, 0x1d
cmp bp, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx edx, bp
mov al, byte [esp + edx + 0x3b]
lea edx, [esp + edx + 0x3b]
test al, al
mov dword [esp + 0x18], edx
je 0x4d965d
xor ebx, ebx
xor edi, edi
mov al, byte [edx]
mov cl, bl
shr al, cl
test al, 1
je 0x4d9655
lea ecx, [ebp - 0x1d]
movsx eax, cx
mov al, byte [edi + eax*8 + 0x57c878]
test al, al
mov byte [esp + 0x14], al
je 0x4d9655
push 0
push 4
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov ecx, dword [esp + 0x14]
push ecx
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404e90
mov edx, dword [esp + 0x18]
inc ebx
inc edi
cmp bx, 8
jl 0x4d9603
inc ebp
lea eax, [ebp - 0x1d]
cmp ax, 9
jl 0x4d95e1
jmp case.default.0x4d94e7
mov edi, 0x26
mov dword [esp + 0x18], edi
cmp di, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx ecx, di
lea eax, [esp + ecx + 0x3b]
mov dword [esp + 0x34], eax
cmp byte [eax], 0
je 0x4d9852
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
jmp 0x4d96a8
mov eax, dword [esp + 0x34]
mov dl, byte [eax]
mov cl, bl
shr dl, cl
test dl, 1
je 0x4d9836
mov ecx, dword [esp + 0x1c]
add edi, 0xffffffda
movsx eax, di
mov al, byte [ecx + eax*8 + 0x57c878]
test al, al
mov byte [esp + 0x14], al
je 0x4d9836
mov ebp, 4
push 0
push ebp
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4d97ba
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d9727
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x4d9727
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x4d972c
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x20], eax
jns 0x4d973d
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
lea eax, [ebp + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebx, dword [esp + 0x30]
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 4], ebp
jmp 0x4d9836
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4d9806
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x4d9833
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ecx
jl 0x4d96a4
inc edi
mov dword [esp + 0x18], edi
lea ecx, [edi - 0x26]
cmp cx, 9
jl 0x4d9679
jmp case.default.0x4d94e7
mov edi, 0x24
mov dword [esp + 0x1c], edi
cmp di, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx edx, di
mov cl, byte [esp + edx + 0x3b]
lea eax, [esp + edx + 0x3b]
test cl, cl
mov dword [esp + 0x20], eax
je 0x4d9a4d
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
jmp 0x4d98a4
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov cl, bl
shr al, cl
test al, 1
je 0x4d9a31
mov edx, dword [esp + 0x18]
add edi, 0xffffffdc
movsx ecx, di
mov al, byte [edx + ecx*8 + 0x57c878]
test al, al
mov byte [esp + 0x14], al
je 0x4d9a31
mov ebp, 4
push 0
push ebp
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4d99b5
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d9922
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x4d9922
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x4d9927
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x34], eax
jns 0x4d9938
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, esi
lea eax, [ebp + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebx, dword [esp + 0x30]
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 4], ebp
jmp 0x4d9a31
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4d9a01
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x4d9a2e
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc ebx
inc ecx
cmp bx, 8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
jl 0x4d98a0
inc edi
mov dword [esp + 0x1c], edi
lea ecx, [edi - 0x24]
cmp cx, 9
jl 0x4d9872
jmp case.default.0x4d94e7
mov ebp, 7
mov dword [esp + 0x18], ebp
cmp bp, word [esp + 0x2c]
jg case.default.0x4d94e7
movsx edx, bp
mov al, byte [esp + edx + 0x3b]
lea edi, [esp + edx + 0x3b]
test al, al
je 0x4d9bea
mov ebx, 4
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov al, byte [edi]
lea ecx, [esp + 0x10]
push eax
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4d9b6e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4d9adc
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x4d9adc
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x4d9ae1
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x20], eax
jns 0x4d9af2
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
push 1
push ebp
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
lea eax, [ebx + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebp, dword [esp + 0x18]
lea ecx, [ebx + eax*4 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 4], ebx
jmp 0x4d9bea
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4d9bba
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x4d9be7
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebx
add ebp, 0xc
cmp bp, 0x37
mov dword [esp + 0x18], ebp
jl 0x4d9a6d
test esi, esi
je 0x4d9c18
mov eax, dword [esi + 4]
test eax, eax
jne 0x4d9c0c
mov dword [esp + 0x38], eax
jmp 0x4d9c18
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00531940
mov ax, word [esp + 0x38]
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 8