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

Disassembly:
sub esp, 0x48
mov cl, byte [esp + 0x6c]
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x70]
push edi
mov word [esp + 0x38], 0
mov dword [esp + 0x3a], eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x3e], eax
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x42], eax
mov dl, cl
mov ebp, dword [esp + 0x68]
mov word [esp + 0x46], ax
mov dword [esp + 0x4c], edi
sar dl, 1
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], 1
mov byte [esp + 0x45], 4
mov word [esp + 0x46], 0
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x44]
movsx di, cl
movsx bx, dl
mov dl, byte [esp + 0x80]
mov dword [esp + 0x54], esi
mov al, dl
mov esi, edi
movsx ecx, cl
sar al, 1
mov dword [esp + 0x7c], esi
mov dword [esp + 0x74], esi
movsx esi, bp
movsx ax, al
mov dword [esp + 0x34], ecx
add ecx, ecx
cmp esi, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov word [esp + 0x28], di
mov dword [esp + 0x1c], esi
jge 0x477f04
mov cx, bp
sar cx, 1
sub ebp, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], ebp
movsx bp, dl
movsx ecx, dl
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
movsx esi, dx
add ecx, ecx
mov word [esp + 0x24], bp
cmp esi, ecx
mov dword [esp + 0x80], ebp
jge 0x477f39
mov cx, dx
mov ebp, edx
sar cx, 1
mov dword [esp + 0x80], ecx
sub ebp, ecx
mov dx, word [esp + 0x74]
mov esi, dword [esp + 0x70]
movsx ecx, word [esp + 0x60]
neg eax
mov dword [esp + 0x10], eax
mov word [esp + 0x3a], ax
mov ax, word [esp + 0x80]
mov word [esp + 0x3c], dx
lea edx, [esp + 0x38]
mov word [esp + 0x3e], ax
movsx eax, word [esp + 0x64]
push edx
mov edx, dword [esp + 0x60]
push 1
push 0
push edx
push esi
neg ebx
push eax
push ecx
mov dword [esp + 0x34], ebx
mov word [esp + 0x54], bx
call fcn.004eb270
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x3c]
sub edi, eax
mov dx, word [esp + 0x9c]
sub edi, ecx
mov cx, word [esp + 0x2c]
mov word [esp + 0x56], cx
mov word [esp + 0x58], ax
movsx ecx, word [esp + 0x7c]
movsx eax, ax
sub ecx, eax
mov eax, dword [esp + 0x38]
add eax, ecx
mov word [esp + 0x5a], dx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x54]
push ecx
push 1
movsx ecx, word [esp + 0x88]
add edx, 2
push 0
push edx
push esi
push ecx
push eax
mov word [esp + 0x70], di
mov dword [esp + 0x54], eax
call fcn.004eb270
mov ax, word [esp + 0xac]
mov ecx, dword [esp + 0x64]
mov word [esp + 0x70], bx
mov ebx, dword [esp + 0x5c]
mov word [esp + 0x74], ax
sub ebx, ebp
movsx eax, word [esp + 0x9c]
sub ebx, ecx
mov edx, eax
movsx eax, word [esp + 0xa4]
movsx ecx, bp
sub edx, ecx
lea ecx, [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x94]
push ecx
push 1
add edx, 6
push 0
push edx
push esi
mov dword [esp + 0x6c], eax
push eax
movsx eax, word [esp + 0xb0]
push eax
mov word [esp + 0x8e], bx
mov word [esp + 0x92], bp
call fcn.004eb270
add esp, 0x54
mov word [esp + 0x38], di
mov edx, dword [esp + 0x5c]
mov ax, word [esp + 0x7c]
lea ecx, [esp + 0x38]
add edx, 8
push ecx
mov ecx, dword [esp + 0x20]
push 1
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x28]
push 0
push edx
push esi
push eax
push ecx
mov word [esp + 0x56], bx
mov word [esp + 0x5a], bp
call fcn.004eb270
mov cx, word [esp + 0x90]
mov eax, dword [esp + 0x2c]
mov dx, word [esp + 0x34]
mov word [esp + 0x58], cx
mov ecx, dword [esp + 0x40]
mov word [esp + 0x56], ax
mov word [esp + 0x5a], cx
mov word [esp + 0x66], ax
movsx eax, word [esp + 0x88]
mov word [esp + 0x6a], cx
mov word [esp + 0x54], dx
mov dx, word [esp + 0x98]
mov word [esp + 0x64], di
movsx edi, word [esp + 0x9c]
movsx ecx, bp
sub eax, ecx
mov word [esp + 0x68], dx
mov edx, dword [esp + 0x30]
mov ecx, eax
sub ecx, edx
add esp, 0x1c
cmp edi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jge 0x47817f
movsx eax, word [esp + 0x64]
add eax, edi
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [ecx + 3]
push 0
push eax
push esi
movsx eax, word [esp + 0x74]
push edx
push eax
call fcn.004eb270
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x64]
push eax
push 1
lea eax, [ecx + 5]
push 0
push eax
mov eax, dword [esp + 0x48]
push esi
push edx
push eax
call fcn.004eb270
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa8]
add edi, eax
add ecx, eax
mov eax, dword [esp + 0x64]
add esp, 0x38
cmp edi, eax
mov dword [esp + 0x70], ecx
jl 0x478117
mov eax, dword [esp + 0x30]
cmp edi, eax
jge 0x4781da
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
sub eax, edi
lea ecx, [esp + 0x38]
sub eax, ebp
push ecx
mov word [esp + 0x52], ax
mov word [esp + 0x42], ax
movsx eax, word [esp + 0x68]
add edi, eax
push 1
movsx eax, word [esp + 0x68]
add edx, 3
push 0
push edx
push esi
push edi
push eax
call fcn.004eb270
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x64]
add ecx, 5
push eax
push 1
push 0
push ecx
push esi
push edi
push edx
call fcn.004eb270
add esp, 0x38
mov cx, word [esp + 0x10]
mov eax, dword [esp + 0x18]
mov word [esp + 0x3a], cx
mov ecx, dword [esp + 0x28]
mov word [esp + 0x38], ax
mov word [esp + 0x3c], cx
mov word [esp + 0x48], ax
mov word [esp + 0x4c], cx
movsx eax, word [esp + 0x68]
movsx ecx, word [esp + 0x7c]
mov dx, word [esp + 0x80]
sub eax, ecx
mov word [esp + 0x4a], bx
mov ebx, dword [esp + 0x34]
mov word [esp + 0x4e], bp
mov ecx, eax
movsx ebp, word [esp + 0x74]
sub ecx, ebx
mov word [esp + 0x3e], dx
cmp ebp, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], ecx
jge 0x478297
movsx edi, word [esp + 0x60]
add edi, ebp
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x38]
push eax
push 1
lea eax, [ecx + 1]
push 0
push eax
push esi
movsx eax, word [esp + 0x78]
push eax
push edi
call fcn.004eb270
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x64]
add eax, 7
push edx
push 1
push 0
push eax
push esi
push ecx
push edi
call fcn.004eb270
mov eax, dword [esp + 0xb8]
add ebp, ebx
add esp, 0x38
add edi, ebx
cmp ebp, eax
jl 0x478246
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
cmp ebp, eax
jge 0x4782f6
mov edx, dword [esp + 0x7c]
mov eax, edi
sub eax, ebp
sub eax, edx
lea edx, [esp + 0x38]
mov word [esp + 0x4c], ax
mov word [esp + 0x3c], ax
movsx eax, word [esp + 0x60]
add ebp, eax
mov eax, dword [esp + 0x5c]
push edx
push 1
inc eax
push 0
push eax
push esi
movsx eax, word [esp + 0x78]
push eax
push ebp
call fcn.004eb270
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x64]
add edx, 7
push ecx
push 1
push 0
push edx
push esi
push eax
push ebp
call fcn.004eb270
add esp, 0x38
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
xor ecx, ecx
movsx eax, dx
sub eax, ebp
mov dword [esp + 0x74], ecx
test eax, eax
mov dword [esp + 0x70], eax
jle 0x478413
movsx eax, di
mov edx, eax
movsx eax, word [esp + 0x64]
sub edx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
jmp 0x478341
mov edx, dword [esp + 0x80]
mov ax, word [esp + 0x18]
xor ebp, ebp
mov word [esp + 0x38], ax
mov ax, word [esp + 0x10]
mov word [esp + 0x3a], ax
mov ax, word [esp + 0x28]
mov word [esp + 0x3c], ax
mov ax, word [esp + 0x24]
test edx, edx
mov word [esp + 0x3e], ax
jle 0x4783ae
movsx edi, word [esp + 0x60]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
push 1
lea eax, [edx + 4]
push 0
push eax
mov eax, dword [esp + 0x8c]
push esi
push eax
push edi
call fcn.004eb270
mov eax, dword [esp + 0x9c]
add ebp, ebx
add esp, 0x1c
add edi, ebx
cmp ebp, eax
jl 0x478374
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
movsx eax, di
cmp ebp, eax
jge 0x4783ef
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x38]
push edx
push 1
add eax, 4
mov ecx, edi
push 0
push eax
movsx eax, word [esp + 0x70]
sub ecx, ebp
push esi
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x90]
add eax, ebp
push ecx
push eax
call fcn.004eb270
mov ecx, dword [esp + 0x90]
add esp, 0x1c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
cmp ecx, eax
mov dword [esp + 0x7c], edx
jl 0x47833a
mov edx, dword [esp + 0x6c]
movsx eax, dx
cmp ecx, eax
jge 0x4784e6
mov ax, word [esp + 0x18]
sub edx, ecx
mov word [esp + 0x38], ax
mov ax, word [esp + 0x10]
mov word [esp + 0x3a], ax
mov ax, word [esp + 0x28]
mov word [esp + 0x3c], ax
xor ebp, ebp
movsx eax, di
sub eax, ebx
mov word [esp + 0x3e], dx
test eax, eax
mov dword [esp + 0x80], eax
jle 0x4784ae
movsx eax, word [esp + 0x64]
add eax, ecx
mov dword [esp + 0x6c], eax
movsx eax, word [esp + 0x60]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x80]
push 1
lea eax, [edx + 4]
push 0
push eax
mov eax, dword [esp + 0x7c]
push esi
push eax
push ecx
call fcn.004eb270
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
add ebp, ebx
add esp, 0x1c
add ecx, ebx
cmp ebp, eax
mov dword [esp + 0x7c], ecx
jl 0x478469
mov ecx, dword [esp + 0x74]
movsx eax, di
cmp ebp, eax
jge 0x4784e6
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x38]
push edx
push 1
add eax, 4
push 0
push eax
push esi
movsx eax, word [esp + 0x78]
add eax, ecx
sub edi, ebp
push eax
mov word [esp + 0x54], di
movsx eax, word [esp + 0x78]
add eax, ebp
push eax
call fcn.004eb270
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret