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

Disassembly:
sub esp, 0x58
mov eax, dword [0x1002eb48]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [eax]
xor eax, eax
push edi
mov edi, 1
mov dword [ebp + 4], eax
mov byte [ebp + 2], al
mov byte [ebp + 3], 4
mov edx, edi
mov dword [esp + 0x14], ecx
mov word [esi + 0x2dc], dx
cmp dword [esi + 0x2e8], edi
jne 0x10005827
mov byte [ebp + 8], 0x10
mov byte [ebp + 9], 6
mov dword [ebp + 4], 2
mov dword [ecx], edi
add word [esi + 0x2ec], di
pop edi
mov dword [esi + 0x2e8], eax
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10013098
add esp, 0x58
ret
mov edx, dword [esp + 0x70]
xor ecx, ecx
push ebx
mov dword [esp + 0x14], eax
mov byte [esp + 0x10], al
cmp edx, eax
jne 0x10005962
lea edx, [ecx + 2]
cmp byte [esi + 0x2de], al
je 0x10005851
cmp dword [esi + 0x2e4], eax
jne 0x1000586a
mov byte [esp + 0x10], 0x10
mov byte [esp + 0x11], 6
mov cx, word [esp + 0x10]
mov word [ebp + 8], cx
mov ecx, edx
mov dword [esp + 0x14], edx
inc byte [esi + 0x2de]
movzx ebx, cx
add ecx, edi
mov byte [ebx + ebp + 8], 0x10
movzx ebx, cx
add ecx, edi
mov byte [ebx + ebp + 8], dl
mov bl, byte [esp + 0x7c]
movzx edi, cx
inc ecx
mov byte [edi + ebp + 8], bl
cmp bl, 0x10
jne 0x1000589c
movzx edi, cx
mov byte [edi + ebp + 8], bl
inc ecx
mov bl, byte [esp + 0x78]
movzx edi, cx
inc ecx
mov byte [edi + ebp + 8], bl
cmp bl, 0x10
jne 0x100058b5
movzx edi, cx
mov byte [edi + ebp + 8], bl
inc ecx
movzx edi, cx
mov byte [edi + ebp + 8], 0xb
inc ecx
movzx edi, cx
mov byte [edi + ebp + 8], al
mov bl, byte [esi + 0x2de]
inc ecx
movzx edi, cx
mov byte [edi + ebp + 8], bl
inc ecx
cmp byte [esi + 0x2de], 0x10
jne 0x100058e6
movzx esi, cx
mov byte [esi + ebp + 8], 0x10
inc ecx
mov byte [esp + 0x20], dl
movzx edx, cx
lea esi, [edx + ebp + 8]
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 1
mov edx, dword [esp + 0x1c]
mov dword [esi], edx
mov byte [esp + 0x21], 0x20
mov byte [esp + 0x22], 1
mov byte [esp + 0x23], 0x24
mov edx, dword [esp + 0x20]
mov dword [esi + 4], edx
mov byte [esp + 0x27], al
add ecx, 0xd
mov byte [esp + 0x24], 1
mov byte [esp + 0x25], 0x10
mov byte [esp + 0x26], 3
mov edx, dword [esp + 0x24]
mov dword [esi + 8], edx
mov byte [esi + 0xc], al
movzx eax, word [esp + 0x14]
movzx esi, cx
mov ecx, esi
sub ecx, eax
sub ecx, 6
push ecx
lea edx, [eax + ebp + 0xa]
push edx
push 1
call fcn.10004c90
add esp, 0xc
jmp 0x10005b69
movzx ecx, word [esi + 0x2ec]
add ecx, edi
cmp edx, ecx
jne 0x10005b7c
inc byte [esi + 0x2de]
mov cl, byte [esp + 0x7c]
mov dword [esi + 0x2e4], eax
mov byte [ebp + 8], 0x10
mov byte [ebp + 9], 6
mov edx, 2
mov byte [ebp + 0xa], 0x10
mov byte [ebp + 0xb], dl
mov byte [ebp + 0xc], cl
lea ebx, [edx + 3]
cmp cl, 0x10
jne 0x100059aa
mov byte [ebp + 0xd], cl
mov ebx, 6
mov cl, byte [esp + 0x78]
movzx edi, bx
inc ebx
mov byte [edi + ebp + 8], cl
cmp cl, 0x10
jne 0x100059c4
movzx ecx, bx
mov byte [ecx + ebp + 8], 0x10
inc ebx
movzx ecx, bx
mov byte [ecx + ebp + 8], 0xb
inc ebx
movzx ecx, bx
mov byte [ecx + ebp + 8], al
inc ebx
movzx ecx, bx
mov dword [esp + 0x14], eax
mov al, byte [esi + 0x2de]
mov byte [ecx + ebp + 8], al
mov eax, dword [esp + 0x14]
inc ebx
cmp byte [esi + 0x2de], 0x10
jne 0x10005a02
movzx ecx, bx
mov byte [ecx + ebp + 8], 0x10
inc ebx
mov byte [esp + 0x10], 1
mov cl, 0x80
push eax
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], 0x54
mov byte [esp + 0x34], dl
mov byte [esp + 0x35], 0x20
mov byte [esp + 0x36], 6
mov byte [esp + 0x37], 0x24
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], 5
mov byte [esp + 0x3a], 0xf7
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3f], 1
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 1
mov byte [esp + 0x42], cl
mov byte [esp + 0x43], dl
mov byte [esp + 0x44], al
mov byte [esp + 0x45], 0x1b
mov byte [esp + 0x46], 5
mov byte [esp + 0x47], al
mov byte [esp + 0x48], al
mov byte [esp + 0x49], al
mov byte [esp + 0x4a], dl
mov byte [esp + 0x4b], dl
mov byte [esp + 0x4c], al
mov byte [esp + 0x4d], al
mov byte [esp + 0x4e], al
mov byte [esp + 0x4f], cl
mov byte [esp + 0x50], 0x84
mov byte [esp + 0x51], 0x1e
mov byte [esp + 0x52], al
mov byte [esp + 0x53], 0xf8
mov byte [esp + 0x54], 0x43
mov byte [esp + 0x55], cl
mov byte [esp + 0x56], 0x84
mov byte [esp + 0x57], 0x1e
mov byte [esp + 0x58], al
mov byte [esp + 0x59], 0xf8
mov byte [esp + 0x5a], 0x43
mov byte [esp + 0x5b], 0xa3
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], 0x20
mov byte [esp + 0x5e], dl
mov byte [esp + 0x5f], 0x24
mov byte [esp + 0x60], 1
mov byte [esp + 0x61], 0x10
mov byte [esp + 0x62], 3
mov byte [esp + 0x63], al
mov byte [esp + 0x64], al
call fcn.100126d6
push eax
call fcn.1001371b
movzx esi, byte [esp + 0x18]
call fcn.1001372d
cdq
mov ecx, 0xff
idiv ecx
add dl, 0x11
mov byte [esp + esi + 0x4b], dl
call fcn.1001372d
cdq
mov ecx, 0xff
idiv ecx
add dl, 0x11
mov byte [esp + esi + 0x4c], dl
call fcn.1001372d
cdq
mov ecx, 0xff
idiv ecx
mov ecx, 0xd
add dl, 0x11
mov byte [esp + esi + 0x4d], dl
movzx edx, bx
lea edi, [edx + ebp + 8]
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
add ebx, 0x35
movzx esi, bx
lea eax, [esi - 8]
push eax
lea ecx, [ebp + 0xc]
push ecx
push 1
call fcn.10004c90
add esp, 0x14
movzx eax, ax
mov byte [esi + ebp + 6], al
shr eax, 8
mov byte [esi + ebp + 7], al
mov dword [ebp + 4], esi
jmp 0x10005b7f
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
mov dword [edx], 1
call fcn.10013098
add esp, 0x58
ret